*BSD News Article 2406


Return to BSD News archive

Xref: sserve comp.sys.sun.misc:2910 comp.unix.ultrix:12774 comp.unix.bsd:2450
Newsgroups: comp.sys.sun.misc,comp.unix.ultrix,comp.unix.bsd
Path: sserve!manuel!munnari.oz.au!mips!decwrl!deccrl!news.crl.dec.com!news!reeves
From: reeves@yauw.aosg.gsf.dec.com (jon reeves)
Subject: Re: Beware of fileno()
Message-ID: <1992Jul24.141048.10911@aosg.gsf.dec.com>
Keywords: sunos, ultrix, stdio, fileno, lossage
Sender: usenet@aosg.gsf.dec.com (USENET News System)
Nntp-Posting-Host: yauw.aosg.gsf.dec.com
Reply-To: reeves@decvax.dec.com
Organization: AOSG
References: <14njaeINNvk@agate.berkeley.edu> <1992Jul24.062320.2170@kithrup.COM>
Date: Fri, 24 Jul 1992 14:10:48 GMT
Lines: 12

|> >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