mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add EPROTOTYPE.
This commit is contained in:
parent
ad19a88473
commit
1a67e969c3
2 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,7 @@
|
|||
#define ENOTCONN 80
|
||||
#define EDEADLK 81
|
||||
#define ENFILE 82
|
||||
#define EPROTOTYPE 83
|
||||
|
||||
#define EOPNOTSUPP ENOTSUP
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ extern "C" const char* sortix_strerror(int errnum)
|
|||
case ENOTCONN: return "Socket is not connected";
|
||||
case EDEADLK: return "Resource deadlock avoided";
|
||||
case ENFILE: return "Too many open files in system";
|
||||
case EPROTOTYPE: return "Wrong protocol type for socket";
|
||||
default: return "Unknown error condition";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue