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.
Unified · Split
| @@ -75,7 +75,6 @@ · 74 unmodified lines | ||
| 75 | 75 | |
| 76 | 76 | /* We now return you to your regularly scheduled HPUX. */ |
| 77 | 77 | |
| 78 | −#define ENOSYM 215 /* symbol does not exist in executable */ | |
| 79 | 78 | #define ENOTSOCK 216 /* Socket operation on non-socket */ |
| 80 | 79 | #define EDESTADDRREQ 217 /* Destination address required */ |
| 81 | 80 | #define EMSGSIZE 218 /* Message too long */ |
| @@ -101,7 +100,6 @@ · 19 unmodified lines | ||
| 101 | 100 | #define ETIMEDOUT 238 /* Connection timed out */ |
| 102 | 101 | #define ECONNREFUSED 239 /* Connection refused */ |
| 103 | 102 | #define EREFUSED ECONNREFUSED /* for HP's NFS apparently */ |
| 104 | −#define EREMOTERELEASE 240 /* Remote peer released connection */ | |
| 105 | 103 | #define EHOSTDOWN 241 /* Host is down */ |
| 106 | 104 | #define EHOSTUNREACH 242 /* No route to host */ |
| 107 | 105 | |
| @@ -111,9 +111,6 @@ static const char *names_0[] = { · 110 unmodified lines | ||
| 111 | 111 | E(ENOSPC), |
| 112 | 112 | E(ENOSR), |
| 113 | 113 | E(ENOSTR), |
| 114 | −#ifdef ENOSYM | |
| 115 | − E(ENOSYM), | |
| 116 | −#endif | |
| 117 | 114 | E(ENOSYS), |
| 118 | 115 | E(ENOTBLK), |
| 119 | 116 | E(ENOTCONN), |
| @@ -144,9 +141,6 @@ static const char *names_0[] = { · 24 unmodified lines | ||
| 144 | 141 | #endif |
| 145 | 142 | E(EREMOTE), |
| 146 | 143 | E(EREMOTEIO), |
| 147 | −#ifdef EREMOTERELEASE | |
| 148 | − E(EREMOTERELEASE), | |
| 149 | −#endif | |
| 150 | 144 | E(ERESTART), |
| 151 | 145 | E(ERFKILL), |
| 152 | 146 | E(EROFS), |
| @@ -75,7 +75,6 @@ · 74 unmodified lines | ||
| 75 | 75 | |
| 76 | 76 | /* We now return you to your regularly scheduled HPUX. */ |
| 77 | 77 | |
| 78 | −#define ENOSYM 215 /* symbol does not exist in executable */ | |
| 79 | 78 | #define ENOTSOCK 216 /* Socket operation on non-socket */ |
| 80 | 79 | #define EDESTADDRREQ 217 /* Destination address required */ |
| 81 | 80 | #define EMSGSIZE 218 /* Message too long */ |
| @@ -101,7 +100,6 @@ · 19 unmodified lines | ||
| 101 | 100 | #define ETIMEDOUT 238 /* Connection timed out */ |
| 102 | 101 | #define ECONNREFUSED 239 /* Connection refused */ |
| 103 | 102 | #define EREFUSED ECONNREFUSED /* for HP's NFS apparently */ |
| 104 | −#define EREMOTERELEASE 240 /* Remote peer released connection */ | |
| 105 | 103 | #define EHOSTDOWN 241 /* Host is down */ |
| 106 | 104 | #define EHOSTUNREACH 242 /* No route to host */ |
| 107 | 105 | |