Date: Tue, 2 Mar 2004 14:10:25 +0300 From: Andrey Chernov <ache@nagual.pp.ru> To: "Jordan K. Hubbard" <jkh@queasyweasel.com> Cc: freebsd-arch@FreeBSD.ORG Subject: Re: Another conformance question... This time fputs(). Message-ID: <20040302111025.GA99496@nagual.pp.ru> In-Reply-To: <1060DC2A-6C31-11D8-9000-000393BB9222@queasyweasel.com>
index | next in thread | previous in thread | raw e-mail
On Tue, Mar 02, 2004 at 02:04:59AM -0800, Jordan K. Hubbard wrote: > errno = 9, rc = -1 > fwrite errno = 9, rc = 0 > > Just to save you the grepping, errno #9 is EBADF, "bad file number". They are right. According to POSIX for fwrite(), fputs(), fputc(): [EBADF] The file descriptor underlying stream is not a valid file descriptor open for writing. > In both cases, we get EACCES for fputs() or fwrite() attempts on a There is no EACCES in POSIX for this functions. Please don't reinvent the wheel. The next almost matching candidate for this functions is only: [ENXIO] A request was made of a nonexistent device, or the request was outside the capabilities of the device. -- Andrey Chernov | http://ache.pp.ru/help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040302111025.GA99496>
