Eric Blake wrote:
# ifndef ECANCELED
# define ECANCELED 136
# define GNULIB_defined_ECANCELED 1
# endif
Using this value is inappropriate, as well. Cygwin currently has errors
up through EOVERFLOW 139.
Oops, right. And on Solaris, ESTALE is 151. And on HP-UX, EWOULDBLOCK is 246.
Le lundi 15 septembre 2008 à 12:27 +0200, Bruno Haible a écrit :
Eric Blake wrote:
# ifndef ECANCELED
# define ECANCELED 136
# define GNULIB_defined_ECANCELED 1
# endif
Using this value is inappropriate, as well. Cygwin currently has errors
up through EOVERFLOW 139.
Oops,
-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
Le lundi 15 septembre 2008 à 13:39 +0200, Bruno Haible a écrit :
Yoann Vandoorselaere wrote:
OpenBSD currently fails the errno unit-tests because it lacks support
for ENOLINK, EPROTO, EMULTIHOP, EBADMSG, ENOTSUP.
The configure script report:
checking for complete errno.h... yes
Hi Eric,
POSIX 200x adds ENOTRECOVERABLE and EOWNERDEAD (in the
context of newly mandated robust mutexes), which very few implementations
are likely to provide yet.
I would not find it wise to add these to our errno.h replacement now, because
- Generally, I prefer to wait for a standard to
Great, I will remove the relevant code from my sys_socket module and
make it dependent on errno.
I will also modify it to do
errno = (err 10025 ? err - 1 :
err == WSAENAMETOOLONG ? ENAMETOOLONG :
err == WSAENOTEMPTY ? ENOTEMPTY :
err);
Thanks,
Paolo
-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.
Cygwin currently fails this because it lacks ECANCELED.
# ifndef ECANCELED
# define ECANCELED 136
#
Hi Paolo and others,
Here's the module 'errno'. It provides a complete POSIX errno.h.
With this, the conversion function from a WSAGetLastError() value to an
errno value is
e - (e 10025 ? e - 1 :
e == WSAENAMETOOLONG ? ENAMETOOLONG :
e == WSAENOTEMPTY ; ENOTEMPTY :
With this, the conversion function from a WSAGetLastError() value to an
errno value is
e - (e 10025 ? e - 1 :
e == WSAENAMETOOLONG ? ENAMETOOLONG :
e == WSAENOTEMPTY ; ENOTEMPTY :
e);
That's still not enough. Looking at [1], I think it should also map
With all errno values defined in errno.h, there is no more need to have
these definitions in the sys/socket.h replacement. I've applied this:
2008-09-13 Bruno Haible [EMAIL PROTECTED]
* lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
*** lib/sys_socket.in.h.orig
10 matches
Mail list logo