From owner-freebsd-hackers Wed Jan 17 19:28:53 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA03474 for hackers-outgoing; Wed, 17 Jan 1996 19:28:53 -0800 (PST) Received: from cats.ucsc.edu (root@cats-po-1.UCSC.EDU [128.114.129.22]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA03454 for ; Wed, 17 Jan 1996 19:28:42 -0800 (PST) Received: from scruz.ucsc.edu by cats.ucsc.edu with SMTP id TAA23576; Wed, 17 Jan 1996 19:28:37 -0800 Received: from osprey by scruz.ucsc.edu id aa22293; 17 Jan 96 19:21 PST Received: (from markd@localhost) by Grizzly.COM (8.6.12/8.6.9) id TAA17835; Wed, 17 Jan 1996 19:21:28 GMT Date: Wed, 17 Jan 1996 19:21:28 GMT Message-Id: <199601171921.TAA17835@Grizzly.COM> From: Mark Diekhans To: jkh@time.cdrom.com CC: hackers@freebsd.org In-reply-to: <14934.821890828@time.cdrom.com> (jkh@time.cdrom.com) Subject: Re: Change to stdio.h to export `cookie?' Sender: owner-hackers@freebsd.org Precedence: bulk >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