summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/fseek.3c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3c/fseek.3c')
-rw-r--r--usr/src/man/man3c/fseek.3c47
1 files changed, 8 insertions, 39 deletions
diff --git a/usr/src/man/man3c/fseek.3c b/usr/src/man/man3c/fseek.3c
index 41007501b1..7db56303c2 100644
--- a/usr/src/man/man3c/fseek.3c
+++ b/usr/src/man/man3c/fseek.3c
@@ -1,13 +1,13 @@
'\" te
.\" Copyright 1989 AT&T. Copyright (c) 20023, Sun Microsystems, Inc. All Rights Reserved. Portions Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
-.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
+.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH fseek 3C "1 Nov 2003" "SunOS 5.11" "Standard C Library Functions"
+.TH FSEEK 3C "Nov 1, 2003"
.SH NAME
fseek, fseeko \- reposition a file-position indicator in a stream
.SH SYNOPSIS
@@ -36,34 +36,28 @@ by adding \fIoffset\fR to the position specified by \fIwhence\fR, whose values
are defined in <\fBstdio.h\fR> as follows:
.sp
.ne 2
-.mk
.na
\fB\fBSEEK_SET\fR\fR
.ad
.RS 12n
-.rt
Set position equal to \fIoffset\fR bytes.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBSEEK_CUR\fR\fR
.ad
.RS 12n
-.rt
Set position to current location plus \fIoffset\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBSEEK_END\fR\fR
.ad
.RS 12n
-.rt
Set position to \fBEOF\fR plus \fIoffset\fR.
.RE
@@ -113,36 +107,30 @@ and the call to \fBfseek()\fR or \fBfseeko()\fR causes an underlying
\fBlseek\fR(2) or \fBwrite\fR(2) to be invoked:
.sp
.ne 2
-.mk
.na
\fB\fBEAGAIN\fR\fR
.ad
.RS 10n
-.rt
The \fBO_NONBLOCK\fR flag is set for the file descriptor and the process would
be delayed in the write operation.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEBADF\fR\fR
.ad
.RS 10n
-.rt
The file descriptor underlying the stream file is not open for writing or the
stream's buffer needed to be flushed and the file is not open.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEFBIG\fR\fR
.ad
.RS 10n
-.rt
An attempt was made to write a file that exceeds the maximum file size or the
process's file size limit, or the file is a regular file and an attempt was
made to write at or beyond the offset maximum associated with the corresponding
@@ -151,36 +139,30 @@ stream.
.sp
.ne 2
-.mk
.na
\fB\fBEINTR\fR\fR
.ad
.RS 10n
-.rt
The write operation was terminated due to the receipt of a signal, and no data
was transferred.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEINVAL\fR\fR
.ad
.RS 10n
-.rt
The \fIwhence\fR argument is invalid. The resulting file-position indicator
would be set to a negative value.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEIO\fR\fR
.ad
.RS 10n
-.rt
A physical I/O error has occurred; or the process is a member of a background
process group attempting to perform a \fBwrite\fR(2) operation to its
controlling terminal, \fBTOSTOP\fR is set, the process is neither ignoring nor
@@ -189,46 +171,38 @@ blocking \fBSIGTTOU\fR, and the process group of the process is orphaned.
.sp
.ne 2
-.mk
.na
\fB\fBENOSPC\fR\fR
.ad
.RS 10n
-.rt
There was no free space remaining on the device containing the file.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBENXIO\fR\fR
.ad
.RS 10n
-.rt
A request was made of a non-existent device, or the request was outside the
capabilities of the device.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEPIPE\fR\fR
.ad
.RS 10n
-.rt
The file descriptor underlying \fIstream\fR is associated with a pipe or FIFO.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEPIPE\fR\fR
.ad
.RS 10n
-.rt
An attempt was made to write to a pipe or \fBFIFO\fR that is not open for
reading by any process. A \fBSIGPIPE\fR signal will also be sent to the calling
thread.
@@ -239,12 +213,10 @@ thread.
The \fBfseek()\fR function will fail if:
.sp
.ne 2
-.mk
.na
\fB\fBEOVERFLOW\fR\fR
.ad
.RS 13n
-.rt
The resulting file offset would be a value which cannot be represented
correctly in an object of type \fBlong\fR.
.RE
@@ -254,12 +226,10 @@ correctly in an object of type \fBlong\fR.
The \fBfseeko()\fR function will fail if:
.sp
.ne 2
-.mk
.na
\fB\fBEOVERFLOW\fR\fR
.ad
.RS 13n
-.rt
The resulting file offset would be a value which cannot be represented
correctly in an object of type \fBoff_t\fR.
.RE
@@ -285,15 +255,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilityStandard
+Interface Stability Standard
_
-MT-LevelMT-Safe
+MT-Level MT-Safe
.TE
.SH SEE ALSO