Date: Tue, 2 Mar 2004 20:12:48 -0800 From: "Jordan K. Hubbard" <jkh@queasyweasel.com> To: Bruce Evans <bde@zeta.org.au> Cc: David Schultz <das@freebsd.org> Subject: Re: Another conformance question... This time fputs(). Message-ID: <0805074F-6CC9-11D8-9000-000393BB9222@queasyweasel.com> In-Reply-To: <20040303144451.T5253@gamplex.bde.org> References: <F648D56F-6C28-11D8-9000-000393BB9222@queasyweasel.com> <20040302165323.GA17665@VARK.homeunix.com> <20040303144451.T5253@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail-13--951762788 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Mar 2, 2004, at 8:04 PM, Bruce Evans wrote: > One is vfprintf(), which may output to non-files. Oops, so can > __svfwrite(). The underlying function isn't always write(2). EBADF > is a very bogus errno if the output is not to a file. It can be to a > string or anything set up by funopen()/fropen()/fwopen(). Strings are > writable, so they don't cause a problem here, but anything set up by > fropen() or funopen() without a write function is unwritable and > returning EBADF is wrong for it. So, what fix are you suggesting? I'm truly open to suggestions here, but if all we end up doing at the end of the day is concluding that things are broken but we don't like any of the proposed fixes, we've not really accomplished anything either. I'd more than welcome any diffs to supersede mine. -- Jordan K. Hubbard Engineering Manager, BSD technology group Apple Computer --Apple-Mail-13--951762788--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0805074F-6CC9-11D8-9000-000393BB9222>