This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fdopen and errno


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   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]