Skip to content

Commit e5f3e29

Browse files
committed
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 <[email protected]> Reported-by: Bruno Haible <[email protected]> Closes: https://sourceware.org/bugzilla/show_bug.cgi?id=31080 Cc: [email protected]
1 parent fe76a13 commit e5f3e29

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

arch/parisc/include/uapi/asm/errno.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575

7676
/* We now return you to your regularly scheduled HPUX. */
7777

78-
#define ENOSYM 215 /* symbol does not exist in executable */
7978
#define ENOTSOCK 216 /* Socket operation on non-socket */
8079
#define EDESTADDRREQ 217 /* Destination address required */
8180
#define EMSGSIZE 218 /* Message too long */
@@ -101,7 +100,6 @@
101100
#define ETIMEDOUT 238 /* Connection timed out */
102101
#define ECONNREFUSED 239 /* Connection refused */
103102
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
104-
#define EREMOTERELEASE 240 /* Remote peer released connection */
105103
#define EHOSTDOWN 241 /* Host is down */
106104
#define EHOSTUNREACH 242 /* No route to host */
107105

lib/errname.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ static const char *names_0[] = {
111111
E(ENOSPC),
112112
E(ENOSR),
113113
E(ENOSTR),
114-
#ifdef ENOSYM
115-
E(ENOSYM),
116-
#endif
117114
E(ENOSYS),
118115
E(ENOTBLK),
119116
E(ENOTCONN),
@@ -144,9 +141,6 @@ static const char *names_0[] = {
144141
#endif
145142
E(EREMOTE),
146143
E(EREMOTEIO),
147-
#ifdef EREMOTERELEASE
148-
E(EREMOTERELEASE),
149-
#endif
150144
E(ERESTART),
151145
E(ERFKILL),
152146
E(EROFS),

tools/arch/parisc/include/uapi/asm/errno.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575

7676
/* We now return you to your regularly scheduled HPUX. */
7777

78-
#define ENOSYM 215 /* symbol does not exist in executable */
7978
#define ENOTSOCK 216 /* Socket operation on non-socket */
8079
#define EDESTADDRREQ 217 /* Destination address required */
8180
#define EMSGSIZE 218 /* Message too long */
@@ -101,7 +100,6 @@
101100
#define ETIMEDOUT 238 /* Connection timed out */
102101
#define ECONNREFUSED 239 /* Connection refused */
103102
#define EREFUSED ECONNREFUSED /* for HP's NFS apparently */
104-
#define EREMOTERELEASE 240 /* Remote peer released connection */
105103
#define EHOSTDOWN 241 /* Host is down */
106104
#define EHOSTUNREACH 242 /* No route to host */
107105

0 commit comments

Comments
 (0)