diff options
author | bde <bde@FreeBSD.org> | 1999-03-05 12:56:37 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-03-05 12:56:37 +0000 |
commit | 37702ffa62b50a8002f022179d979f72cf18b59e (patch) | |
tree | 6ef4480c46150547ccf09c203940eff29006da15 /lib/libc/stdio | |
parent | 6d203414cae29b2e8d67d7d6a63f671228bde7c5 (diff) | |
download | FreeBSD-src-37702ffa62b50a8002f022179d979f72cf18b59e.zip FreeBSD-src-37702ffa62b50a8002f022179d979f72cf18b59e.tar.gz |
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.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/fseek.3 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/stdio/fseek.3 b/lib/libc/stdio/fseek.3 index 064130a..5b1f513 100644 --- a/lib/libc/stdio/fseek.3 +++ b/lib/libc/stdio/fseek.3 @@ -34,8 +34,9 @@ .\" SUCH DAMAGE. .\" .\" @(#)fseek.3 8.1 (Berkeley) 6/4/93 +.\" $Id$ .\" -.Dd June 4, 1993 +.Dd Mar 5, 1999 .Dt FSEEK 3 .Os .Sh NAME @@ -59,6 +60,7 @@ .Fn fgetpos "FILE *stream" "fpos_t *pos" .Ft int .Fn fsetpos "FILE *stream" "const fpos_t *pos" +.Fd #include <sys/types.h> .Ft int .Fn fseeko "FILE *stream" "off_t offset" "int whence" .Ft off_t @@ -115,7 +117,7 @@ The .Fn fseeko function is identical to .Fn fseek , -but take an +except it takes an .Fa off_t argument instead of a @@ -124,7 +126,7 @@ Likewise, the .Fn ftello function is identical to .Fn ftell , -but returns +except it returns an .Fa off_t . .Pp The @@ -163,7 +165,7 @@ and .Fn ftell and .Fn ftello -returns the current offset. +return the current offset. Otherwise, \-1 is returned and the global variable errno is set to indicate the error. .Sh ERRORS |