This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: ENOTSUP vs EOPNOTSUPP
- To: Roland McGrath <roland@frob.com>
- Subject: Re: ENOTSUP vs EOPNOTSUPP
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 23 Jan 1999 12:45:46 -0800
- Cc: GNU libc hacker <libc-hacker@gnu.org>
- References: <199901232020.PAA31312@baalperazim.frob.com>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------