Add ENOLOCK.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-04-22 00:39:03 +02:00
parent 1a67e969c3
commit 3c94199720
2 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,7 @@
#define EDEADLK 81
#define ENFILE 82
#define EPROTOTYPE 83
#define ENOLCK 84
#define EOPNOTSUPP ENOTSUP

View File

@ -102,6 +102,7 @@ extern "C" const char* sortix_strerror(int errnum)
case EDEADLK: return "Resource deadlock avoided";
case ENFILE: return "Too many open files in system";
case EPROTOTYPE: return "Wrong protocol type for socket";
case ENOLCK: return "No locks available";
default: return "Unknown error condition";
}
}