Add EPROTOTYPE.
This commit is contained in:
parent
ad19a88473
commit
1a67e969c3
|
@ -72,6 +72,7 @@
|
||||||
#define ENOTCONN 80
|
#define ENOTCONN 80
|
||||||
#define EDEADLK 81
|
#define EDEADLK 81
|
||||||
#define ENFILE 82
|
#define ENFILE 82
|
||||||
|
#define EPROTOTYPE 83
|
||||||
|
|
||||||
#define EOPNOTSUPP ENOTSUP
|
#define EOPNOTSUPP ENOTSUP
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,7 @@ extern "C" const char* sortix_strerror(int errnum)
|
||||||
case ENOTCONN: return "Socket is not connected";
|
case ENOTCONN: return "Socket is not connected";
|
||||||
case EDEADLK: return "Resource deadlock avoided";
|
case EDEADLK: return "Resource deadlock avoided";
|
||||||
case ENFILE: return "Too many open files in system";
|
case ENFILE: return "Too many open files in system";
|
||||||
|
case EPROTOTYPE: return "Wrong protocol type for socket";
|
||||||
default: return "Unknown error condition";
|
default: return "Unknown error condition";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue