Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 1996 19:21:28 GMT
From:      Mark Diekhans <markd@grizzly.com>
To:        jkh@time.cdrom.com
Cc:        hackers@freebsd.org
Subject:   Re: Change to stdio.h to export `cookie?'
Message-ID:  <199601171921.TAA17835@Grizzly.COM>
In-Reply-To: <14934.821890828@time.cdrom.com> (jkh@time.cdrom.com)

next in thread | previous in thread | raw e-mail | index | archive | help
>about the inside of the FILE structure.  I don't know if anyone's ever
>ported MH to a new stdio architecture, but programs which make
>assumptions about the internals of stdio are EVIL and should be
>banned.  In the case of the cookie, it's worse since there's no other
>way to fiddle with it and fiddle with it you have to if you want to
>actually use it as the designers intended.

To prevent myself (and code I helped to put in Tcl/Tk) from being banned,
how about a macro to determine if there is any data to be read pending in the
buffer?  Its essential if you want to do select on a buffered file.

Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601171921.TAA17835>