-----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             [EMAIL PROTECTED]
-----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