home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!ieunet!!bsullivn
- From: bsullivn@sc.sni.ie (Bryan O'Sullivan)
- Newsgroups: comp.unix.wizards
- Subject: Re: A few UNIX questions
- Message-ID: <169@sc.sni.ie>
- Date: 27 Aug 92 09:57:11 GMT
- Article-I.D.: sc.169
- References: <1992Aug26.081414.6932@sniap.mchp.sni.de>
- Reply-To: bryan@sc.sni.ie
- Organization: Siemens-Nixdorf Software Development Centre, Dublin
- Lines: 18
- X-Newsreader: Tin 1.1 PL3
-
-
-
- frank@D012S436.sniap.mchp.sni.de writes:
-
- ::Because lseek() needs to be able to return -1 on error, and not have it
- ::look like a valid file offset.
-
- :Umm, and a *signed* file size helps, does it?
-
- RTFM. Lseek(2) returns the current position in the file, or -1 on
- error. If you can think of any way to produce -1 by using unsigned
- values, well ...
-
- -- Bryan
-
- --
- Bryan O'Sullivan +353-1-767551 x225
- Siemens-Nixdorf Informationssysteme AG bryan@sc.sni.ie
- Software Development Centre "Theory like mist on eyeglasses.
- Dublin Obscure facts." -- Charlie Chan
-