Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!apple!oliveb!felix!info-ultrix From: creps@silver.bacs.indiana.edu (Steve Creps) Newsgroups: comp.unix.ultrix Subject: lseek(2) return value Message-ID: <88333@felix.UUCP> Date: 21 Mar 89 18:56:53 GMT Sender: info-ultrix@felix.UUCP Reply-To: creps@silver.bacs.indiana.edu (Steve Creps) Organization: Indiana University Computer Science, Bloomington Lines: 16 Approved: zemon@felix.UUCP Reply-Path: Reply-to: creps@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@silver.bacs.indiana.edu (129.79.1.6) {inuxc,rutgers,uunet!uiucdcs,pur-ee}!iuvax!silver!creps creps@iubacs.bitnet (forwarded)