feat: add SYS_FUTEX_WAIT and SYS_FUTEX_WAKE syscalls; revamp desktop application categories
This commit is contained in:
1 parent
60ca9c78c7
commit
abfd9de8f6
35 files changed
+545
-70
No files matched your search
@@ -27,7 +27,9 @@ typedef enum {
|
||||
NoSuchPath = 11,
|
||||
Busy = 12,
|
||||
BufferTooSmall = 13,
|
||||
OutOfMemory = 14
|
||||
OutOfMemory = 14,
|
||||
TimedOut = 15,
|
||||
WouldBlock = 16
|
||||
} StatusCode;
|
||||
|
||||
inline const char* GetStatusText(StatusCode statusCode) {
|
||||
@@ -47,9 +49,11 @@ inline const char* GetStatusText(StatusCode statusCode) {
|
||||
"Busy", // 12
|
||||
"Buffer too small", // 13
|
||||
"Out of memory", // 14
|
||||
"Timed out", // 15
|
||||
"Operation would block", // 16
|
||||
};
|
||||
|
||||
if (statusCode > 0 && statusCode <= 14) {
|
||||
if (statusCode > 0 && statusCode <= 16) {
|
||||
return statusText[statusCode];
|
||||
} else {
|
||||
return "Unknown error";
|
||||
@@ -74,9 +78,11 @@ inline const char* GetStatusExplanationText(StatusCode statusCode) {
|
||||
0, // 12
|
||||
"The buffer supplied by the caller is too small.", // 13
|
||||
0, // 14
|
||||
0, // 15
|
||||
0, // 16
|
||||
};
|
||||
|
||||
if (statusCode > 0 && statusCode <= 14) {
|
||||
if (statusCode > 0 && statusCode <= 16) {
|
||||
if (explanationText[statusCode] != 0) {
|
||||
return explanationText[statusCode];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user