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