bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'errno'


From: Eric Blake
Subject: Re: new module 'errno'
Date: Mon, 15 Sep 2008 05:43:15 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 9/13/2008 4:41 PM:
> Hi Paolo and others,
> 
> Here's the module 'errno'. It provides a complete POSIX <errno.h>.

Any reason tests/test-errno.c states this?

/* Don't verify that these errno values are all different, except for possibly
   EWOULDBLOCK == EAGAIN.  Even Linux/x86 does not pass this check: it has
   ENOTSUP == EOPNOTSUPP.  */

That statement is true for POSIX 2001.  But POSIX 200x added recognition
of the ENOTSUP/EOPNOTSUPP pairing, such that Linux will be compliant to
the next version of POSIX without changing errno.h.  I would really like
to see a test for uniqueness of all of the other errno values.

Also, you failed to test for ENODATA (61 on Linux), ENOSR (60), ENOSTR
(63), and ETIME (62) (even though POSIX 200x marked them obsolete, as
there are no functions in that draft that will return that error).

On the other hand, POSIX 200x adds ENOTRECOVERABLE and EOWNERDEAD (in the
context of newly mandated robust mutexes), which very few implementations
are likely to provide yet.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjOSlMACgkQ84KuGfSFAYDsFACcCjF54lix/2mt2gcehmqoeVCM
KdUAnRbVENPerXFemOAzytKHyp9LEpaF
=z12v
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]