Add EPROTOTYPE.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-04-21 23:23:24 +02:00
parent ad19a88473
commit 1a67e969c3
2 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@
#define ENOTCONN 80
#define EDEADLK 81
#define ENFILE 82
#define EPROTOTYPE 83
#define EOPNOTSUPP ENOTSUP

View File

@ -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";
}
}