mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add ENOTSOCK.
This commit is contained in:
parent
8a72874548
commit
279f15398f
2 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,7 @@
|
|||
#define ENXIO 55
|
||||
#define EPROTONOSUPPORT 56
|
||||
#define EAFNOSUPPORT 57
|
||||
#define ENOTSOCK 58
|
||||
|
||||
#define EOPNOTSUPP ENOTSUP
|
||||
|
||||
|
|
|
@ -76,6 +76,7 @@ extern "C" const char* sortix_strerror(int errnum)
|
|||
case ENXIO: return "No such device or address";
|
||||
case EPROTONOSUPPORT: return "Protocol not supported";
|
||||
case EAFNOSUPPORT: return "Address family not supported";
|
||||
case ENOTSOCK: return "Not a socket";
|
||||
default: return "Unknown error condition";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue