The below diff makes the following two changes. - State that ftell() and ftello() return -1 on error rather than just a non-zero value. The latter is not specific enough, because these functions can also return non-zero on success.
- For clarity and search-friendliness, don't refer to fgetpos() and fsetpos() as "the others", but mention them by name. Regards, Tim Index: fseek.3 =================================================================== RCS file: /cvs/src/lib/libc/stdio/fseek.3,v retrieving revision 1.11 diff -u fseek.3 --- fseek.3 31 May 2007 19:19:31 -0000 1.11 +++ fseek.3 5 Jul 2011 13:05:11 -0000 @@ -148,6 +148,7 @@ .Fn fgetpos , .Fn fseek , .Fn fseeko , +and .Fn fsetpos return 0 and .Fn ftell @@ -155,10 +156,16 @@ .Fn ftello return the current offset. Otherwise, -.Fn fseek +.Fn fseek , +.Fn fseeko , +.Fn ftell , and -.Fn fseeko -return \-1 and the others return a non-zero value and the global variable +.Fn ftello +return \-1 and +.Fn fgetpos +and +.Fn fsetpos +return a non-zero value and the global variable .Va errno is set to indicate the error. .Sh ERRORS
