mirror of
https://review.haiku-os.org/haiku
synced 2025-01-18 04:28:52 +01:00
Errors.h: Add ESOCKTNOSUPPORT.
It's in POSIX.1-2024, see https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html Fixes #19347.
This commit is contained in:
parent
2a6dd3744d
commit
8ecc31ca7b
@ -185,6 +185,7 @@
|
||||
#define HAIKU_ENOATTR B_TO_POSIX_ERROR(B_POSIX_ERROR_BASE + 60)
|
||||
#define HAIKU_ENOTRECOVERABLE B_TO_POSIX_ERROR(B_POSIX_ERROR_BASE + 61)
|
||||
#define HAIKU_EOWNERDEAD B_TO_POSIX_ERROR(B_POSIX_ERROR_BASE + 62)
|
||||
#define HAIKU_ESOCKTNOSUPPORT B_TO_POSIX_ERROR(B_POSIX_ERROR_BASE + 63)
|
||||
|
||||
/* B_NO_MEMORY (0x80000000) can't be negated, so it needs special handling */
|
||||
#define HAIKU_ENOMEM B_NO_MEMORY
|
||||
|
@ -189,6 +189,7 @@
|
||||
#define ENOATTR B_TO_POSIX_ERROR(B_POSIX_ERROR_BASE + 60)
|
||||
#define ENOTRECOVERABLE B_TO_POSIX_ERROR(B_POSIX_ERROR_BASE + 61)
|
||||
#define EOWNERDEAD B_TO_POSIX_ERROR(B_POSIX_ERROR_BASE + 62)
|
||||
#define ESOCKTNOSUPPORT B_TO_POSIX_ERROR(B_POSIX_ERROR_BASE + 63)
|
||||
|
||||
/* B_NO_MEMORY (0x80000000) can't be negated, so it needs special handling */
|
||||
#ifdef B_USE_POSITIVE_POSIX_ERRORS
|
||||
|
@ -295,6 +295,9 @@ struct error_pair {
|
||||
#endif
|
||||
#ifdef EOWNERDEAD
|
||||
E(EOWNERDEAD),
|
||||
#endif
|
||||
#ifdef ESOCKTNOSUPPORT
|
||||
E(ESOCKTNOSUPPORT),
|
||||
#endif
|
||||
E(EWOULDBLOCK),
|
||||
E(EXDEV),
|
||||
|
@ -536,6 +536,8 @@ error_description(int error)
|
||||
return "State not recoverable";
|
||||
case EOWNERDEAD:
|
||||
return "Previous owner died";
|
||||
case ESOCKTNOSUPPORT:
|
||||
return "Socket type not supported";
|
||||
|
||||
default:
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user