The pseudocode in the synopsis didn't come close to actually
compiling, since <stdio.h> correctly doesn't declare off_t although the pseudo-prototypes for the new fseeko() and ftello() functions use it. Handle this like the corresponding problem for va_list versus the vprintf() family. Fixed some English errors.
This commit is contained in:
parent
fdc79256c1
commit
b300c1d8f9
|
@ -34,8 +34,9 @@
|
||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)fseek.3 8.1 (Berkeley) 6/4/93
|
.\" @(#)fseek.3 8.1 (Berkeley) 6/4/93
|
||||||
|
.\" $Id$
|
||||||
.\"
|
.\"
|
||||||
.Dd June 4, 1993
|
.Dd Mar 5, 1999
|
||||||
.Dt FSEEK 3
|
.Dt FSEEK 3
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -59,6 +60,7 @@
|
||||||
.Fn fgetpos "FILE *stream" "fpos_t *pos"
|
.Fn fgetpos "FILE *stream" "fpos_t *pos"
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn fsetpos "FILE *stream" "const fpos_t *pos"
|
.Fn fsetpos "FILE *stream" "const fpos_t *pos"
|
||||||
|
.Fd #include <sys/types.h>
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn fseeko "FILE *stream" "off_t offset" "int whence"
|
.Fn fseeko "FILE *stream" "off_t offset" "int whence"
|
||||||
.Ft off_t
|
.Ft off_t
|
||||||
|
@ -115,7 +117,7 @@ The
|
||||||
.Fn fseeko
|
.Fn fseeko
|
||||||
function is identical to
|
function is identical to
|
||||||
.Fn fseek ,
|
.Fn fseek ,
|
||||||
but take an
|
except it takes an
|
||||||
.Fa off_t
|
.Fa off_t
|
||||||
argument
|
argument
|
||||||
instead of a
|
instead of a
|
||||||
|
@ -124,7 +126,7 @@ Likewise, the
|
||||||
.Fn ftello
|
.Fn ftello
|
||||||
function is identical to
|
function is identical to
|
||||||
.Fn ftell ,
|
.Fn ftell ,
|
||||||
but returns
|
except it returns an
|
||||||
.Fa off_t .
|
.Fa off_t .
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
|
@ -163,7 +165,7 @@ and
|
||||||
.Fn ftell
|
.Fn ftell
|
||||||
and
|
and
|
||||||
.Fn ftello
|
.Fn ftello
|
||||||
returns the current offset.
|
return the current offset.
|
||||||
Otherwise, \-1 is returned and the global variable errno is set to
|
Otherwise, \-1 is returned and the global variable errno is set to
|
||||||
indicate the error.
|
indicate the error.
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
|
|
Loading…
Reference in New Issue