home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / wizards / 3703 < prev    next >
Encoding:
Internet Message Format  |  1992-08-27  |  1.1 KB

  1. Path: sparky!uunet!mcsun!ieunet!!bsullivn
  2. From: bsullivn@sc.sni.ie (Bryan O'Sullivan)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: A few UNIX questions
  5. Message-ID: <169@sc.sni.ie>
  6. Date: 27 Aug 92 09:57:11 GMT
  7. Article-I.D.: sc.169
  8. References: <1992Aug26.081414.6932@sniap.mchp.sni.de>
  9. Reply-To: bryan@sc.sni.ie
  10. Organization: Siemens-Nixdorf Software Development Centre, Dublin
  11. Lines: 18
  12. X-Newsreader: Tin 1.1 PL3
  13.  
  14.  
  15.  
  16. frank@D012S436.sniap.mchp.sni.de writes:
  17.  
  18. ::Because lseek() needs to be able to return -1 on error, and not have it
  19. ::look like a valid file offset.
  20.  
  21. :Umm, and a *signed* file size helps, does it?
  22.  
  23. RTFM.  Lseek(2) returns the current position in the file, or -1 on
  24. error.  If you can think of any way to produce -1 by using unsigned
  25. values, well ...
  26.  
  27.     -- Bryan
  28.  
  29. -- 
  30. Bryan O'Sullivan                                             +353-1-767551 x225
  31. Siemens-Nixdorf Informationssysteme AG                          bryan@sc.sni.ie
  32. Software Development Centre                    "Theory like mist on eyeglasses.
  33. Dublin                                          Obscure facts." -- Charlie Chan
  34.