This is the mail archive of the libc-hacker@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: ENOTSUP vs EOPNOTSUPP


Roland McGrath <roland@frob.com> writes:

> Please explain the following change:
> 
>     1999-01-22  Ulrich Drepper  <drepper@cygnus.com>
> 
> 	    * sysdeps/gnu/errlist.awk: Mark ENOTSUP as alias for EOPNOTSUPP.
> 
> I do not think it is correct.  Moreover, such a change should never be made
> without discussion, because it affects multiple platforms, and affects the
> universal glibc API.

Your change (adding the errno number) made it impossible to compile
glibc on Linux because on Linux ENOTSUP == EOPNOTSUPP.

There shouldn't be any consequences for Hurd since the #if tests
whether both error values have the same value.

> I did look at the Unix98 spec, which specifies both ENOTSUP and EOPNOTSUPP.
> It furthermore specifies that all the error codes it specifies must be
> unique values, with the specific exception that EAGAIN might == EWOULDBLOCK.
> For that reason, I concluded ENOTSUP must be distinct from EOPNOTSUPP.

Ideally, yes.  But again. Linus did not accept my patches.

-- 
---------------.      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]