home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11487 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.6 KB

  1. Xref: sparky comp.sys.sgi:11487 comp.unix.bsd:3000
  2. Path: sparky!uunet!ki.com!dwatts
  3. From: dwatts@ki.com (Dan Watts)
  4. Newsgroups: comp.sys.sgi,comp.unix.bsd
  5. Subject: Re: Beware of fileno()
  6. Keywords: sunos, ultrix, stdio, fileno, lossage, irix
  7. Message-ID: <1217@ki.com>
  8. Date: 28 Jul 92 00:21:34 GMT
  9. References: <14njaeINNvk@agate.berkeley.edu> <1992Jul24.062320.2170@kithrup.COM> <1992Jul24.141048.10911@aosg.gsf.dec.com>
  10. Followup-To: comp.unix.bsd
  11. Organization: ki Research, Inc
  12. Lines: 24
  13.  
  14. In article <1992Jul24.141048.10911@aosg.gsf.dec.com> reeves@decvax.dec.com writes:
  15. ||> >Sean Eric Fagan   |> Andreas Stolcke
  16. ||> >... fileno() returns a char field in the FILE structure...one has to use
  17. ||> >    (unsigned char)fileno(stream) 
  18. ||> Current BSD sources have the _file element as a short.
  19. |
  20. |The same change went into ULTRIX over a year ago; I believe it's been released
  21. |for nearly a year (it was definitely in V4.2, which isn't even the current
  22. |release any more).
  23. |-- 
  24. |Jon Reeves    Digital Equipment Corporation, Alpha Open Systems Group
  25. |        5 Wentworth Drive, MS GSF1-1K13, Hudson NH 03051-4929 USA
  26. |+1 603 884 5859    reeves@decvax.dec.com    FAX: +1 603 884 1685
  27.  
  28. SGI Irix 4.0.1 still has it as "char _file;".  I wonder if they've
  29. fixed it yet?  Luckily, the default behaviour for the SGI C compiler
  30. is to treat all chars as unsigned.
  31.  
  32.  
  33. -- 
  34. ######################## Have A Nice Nude Day #########################
  35. # CompuServe: >INTERNET:uunet.UU.NET!ki.com!dwatts  Dan Watts         #
  36. # UUCP      : ...!uunet!ki.com!dwatts               ki Research, Inc. #
  37. # The Bill Of Rights: Void Where Prohibited by Law. Vote Libertarian ##
  38.