This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: fdopen and errno
- To: Mark Kettenis <kettenis@wins.uva.nl>
- Subject: Re: fdopen and errno
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 06 Jul 1999 15:42:27 -0700
- Cc: aj@arthur.rhein-neckar.de, libc-alpha@sourceware.cygnus.com, velco@fadata.bg, bennyb@ntplx.net
- References: <u8yagxamb5.fsf@arthur.rhein-neckar.de> <199907041303.PAA00221@delius.kettenis.nl>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Mark Kettenis <kettenis@wins.uva.nl> writes:
> Thus for Unix98 compatibility we should probably set errno. It
> looks as if we already detect EBADF and ENOMEM (I don't think we
> will ever encounter a condition that should generate EMFILE in
> glibc), and EINVAL in the case of a totally bogus mode
> specification. We should probably set errno to EINVAL as well if
> the stream mode doesn't match the access mode.
I've applied your patch. Thanks,
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------