parisc: Drop the HP-UX ENOSYM and EREMOTERELEASE error codes
Those return codes are only defined for the parisc architecture and are leftovers from when we wanted to be HP-UX compatible. They are not returned by any Linux kernel syscall but do trigger problems with the glibc strerrorname_np() and strerror() functions as reported in glibc issue #31080. There is no need to keep them, so simply remove them. Signed-off-by: Helge Deller <deller@gmx.de> Reported-by: Bruno Haible <bruno@clisp.org> Closes: https://sourceware.org/bugzilla/show_bug.cgi?id=31080 Cc: stable@vger.kernel.org
This commit is contained in:
parent
fe76a1349f
commit
e5f3e299a2
|
@ -75,7 +75,6 @@
|
||||||
|
|
||||||
/* We now return you to your regularly scheduled HPUX. */
|
/* We now return you to your regularly scheduled HPUX. */
|
||||||
|
|
||||||
#define ENOSYM 215 /* symbol does not exist in executable */
|
|
||||||
#define ENOTSOCK 216 /* Socket operation on non-socket */
|
#define ENOTSOCK 216 /* Socket operation on non-socket */
|
||||||
#define EDESTADDRREQ 217 /* Destination address required */
|
#define EDESTADDRREQ 217 /* Destination address required */
|
||||||
#define EMSGSIZE 218 /* Message too long */
|
#define EMSGSIZE 218 /* Message too long */
|
||||||
|
@ -101,7 +100,6 @@
|
||||||
#define ETIMEDOUT 238 /* Connection timed out */
|
#define ETIMEDOUT 238 /* Connection timed out */
|
||||||
#define ECONNREFUSED 239 /* Connection refused */
|
#define ECONNREFUSED 239 /* Connection refused */
|
||||||
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
|
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
|
||||||
#define EREMOTERELEASE 240 /* Remote peer released connection */
|
|
||||||
#define EHOSTDOWN 241 /* Host is down */
|
#define EHOSTDOWN 241 /* Host is down */
|
||||||
#define EHOSTUNREACH 242 /* No route to host */
|
#define EHOSTUNREACH 242 /* No route to host */
|
||||||
|
|
||||||
|
|
|
@ -111,9 +111,6 @@ static const char *names_0[] = {
|
||||||
E(ENOSPC),
|
E(ENOSPC),
|
||||||
E(ENOSR),
|
E(ENOSR),
|
||||||
E(ENOSTR),
|
E(ENOSTR),
|
||||||
#ifdef ENOSYM
|
|
||||||
E(ENOSYM),
|
|
||||||
#endif
|
|
||||||
E(ENOSYS),
|
E(ENOSYS),
|
||||||
E(ENOTBLK),
|
E(ENOTBLK),
|
||||||
E(ENOTCONN),
|
E(ENOTCONN),
|
||||||
|
@ -144,9 +141,6 @@ static const char *names_0[] = {
|
||||||
#endif
|
#endif
|
||||||
E(EREMOTE),
|
E(EREMOTE),
|
||||||
E(EREMOTEIO),
|
E(EREMOTEIO),
|
||||||
#ifdef EREMOTERELEASE
|
|
||||||
E(EREMOTERELEASE),
|
|
||||||
#endif
|
|
||||||
E(ERESTART),
|
E(ERESTART),
|
||||||
E(ERFKILL),
|
E(ERFKILL),
|
||||||
E(EROFS),
|
E(EROFS),
|
||||||
|
|
|
@ -75,7 +75,6 @@
|
||||||
|
|
||||||
/* We now return you to your regularly scheduled HPUX. */
|
/* We now return you to your regularly scheduled HPUX. */
|
||||||
|
|
||||||
#define ENOSYM 215 /* symbol does not exist in executable */
|
|
||||||
#define ENOTSOCK 216 /* Socket operation on non-socket */
|
#define ENOTSOCK 216 /* Socket operation on non-socket */
|
||||||
#define EDESTADDRREQ 217 /* Destination address required */
|
#define EDESTADDRREQ 217 /* Destination address required */
|
||||||
#define EMSGSIZE 218 /* Message too long */
|
#define EMSGSIZE 218 /* Message too long */
|
||||||
|
@ -101,7 +100,6 @@
|
||||||
#define ETIMEDOUT 238 /* Connection timed out */
|
#define ETIMEDOUT 238 /* Connection timed out */
|
||||||
#define ECONNREFUSED 239 /* Connection refused */
|
#define ECONNREFUSED 239 /* Connection refused */
|
||||||
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
|
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
|
||||||
#define EREMOTERELEASE 240 /* Remote peer released connection */
|
|
||||||
#define EHOSTDOWN 241 /* Host is down */
|
#define EHOSTDOWN 241 /* Host is down */
|
||||||
#define EHOSTUNREACH 242 /* No route to host */
|
#define EHOSTUNREACH 242 /* No route to host */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue