mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add ENOLOCK.
This commit is contained in:
parent
1a67e969c3
commit
3c94199720
2 changed files with 2 additions and 0 deletions
|
@ -73,6 +73,7 @@
|
|||
#define EDEADLK 81
|
||||
#define ENFILE 82
|
||||
#define EPROTOTYPE 83
|
||||
#define ENOLCK 84
|
||||
|
||||
#define EOPNOTSUPP ENOTSUP
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue