lseek(2) return value
Steve Creps
creps at silver.bacs.indiana.edu
Wed Mar 22 04:56:53 AEST 1989
Reply-to: creps at silver.bacs.indiana.edu (Steve Creps)
The man page for lseek in Ultrix v3.0 has a mistake in the return value for
lseek(2). The beginning of it says it returns an int, but later the man page
says it returns a long integer. Lint complains unless it is declared as long.
Also, lint doesn't like it when the second parameter is declared off_t, as
the man page says it should. /usr/include/sys/types.h has off_t typedef'ed to
int, but lint wants a long. Is the mistake in the man page, or the include
file? In other words, would it be a good idea to redefine off_t as long?
- - - - - - - - - -
Steve Creps, Indiana University, Bloomington, home of the "Hoosiers"
creps at silver.bacs.indiana.edu (129.79.1.6)
{inuxc,rutgers,uunet!uiucdcs,pur-ee}!iuvax!silver!creps
creps at iubacs.bitnet (forwarded)
More information about the Comp.unix.ultrix
mailing list