home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / misc / 3319 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.2 KB

  1. Xref: sparky comp.sys.sun.misc:3319 comp.unix.ultrix:5870 comp.unix.bsd:2771
  2. Path: sparky!uunet!olivea!decwrl!deccrl!news.crl.dec.com!news!reeves
  3. From: reeves@yauw.aosg.gsf.dec.com (jon reeves)
  4. Newsgroups: comp.sys.sun.misc,comp.unix.ultrix,comp.unix.bsd
  5. Subject: Re: Beware of fileno()
  6. Keywords: sunos, ultrix, stdio, fileno, lossage
  7. Message-ID: <1992Jul24.141048.10911@aosg.gsf.dec.com>
  8. Date: 24 Jul 92 14:10:48 GMT
  9. References: <14njaeINNvk@agate.berkeley.edu> <1992Jul24.062320.2170@kithrup.COM>
  10. Sender: usenet@aosg.gsf.dec.com (USENET News System)
  11. Reply-To: reeves@decvax.dec.com
  12. Organization: AOSG
  13. Lines: 12
  14. Nntp-Posting-Host: yauw.aosg.gsf.dec.com
  15.  
  16. |> >Sean Eric Fagan   |> Andreas Stolcke
  17. |> >... fileno() returns a char field in the FILE structure...one has to use
  18. |> >    (unsigned char)fileno(stream) 
  19. |> Current BSD sources have the _file element as a short.
  20.  
  21. The same change went into ULTRIX over a year ago; I believe it's been released
  22. for nearly a year (it was definitely in V4.2, which isn't even the current
  23. release any more).
  24. -- 
  25. Jon Reeves    Digital Equipment Corporation, Alpha Open Systems Group
  26.         5 Wentworth Drive, MS GSF1-1K13, Hudson NH 03051-4929 USA
  27. +1 603 884 5859    reeves@decvax.dec.com    FAX: +1 603 884 1685
  28.