diff options
author | David Robillard <d@drobilla.net> | 2022-09-01 23:14:03 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-01 23:59:38 -0400 |
commit | 7cd6a5437c263a4e2b64bafdf780d60ce51f941f (patch) | |
tree | a87d20b772ddc0e864cc2768a999af2d8f92cf13 /src/status.c | |
parent | 16a8597f4d52de948291825698b7d2458998a510 (diff) | |
download | zix-7cd6a5437c263a4e2b64bafdf780d60ce51f941f.tar.gz zix-7cd6a5437c263a4e2b64bafdf780d60ce51f941f.tar.bz2 zix-7cd6a5437c263a4e2b64bafdf780d60ce51f941f.zip |
Simplify thread and semaphore status codes
Diffstat (limited to 'src/status.c')
-rw-r--r-- | src/status.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/status.c b/src/status.c index ed48952..380d370 100644 --- a/src/status.c +++ b/src/status.c @@ -31,6 +31,8 @@ zix_strerror(const ZixStatus status) return "Overflow"; case ZIX_STATUS_NOT_SUPPORTED: return "Not supported"; + case ZIX_STATUS_UNAVAILABLE: + return "Resource unavailable"; } return "Unknown error"; } @@ -41,6 +43,10 @@ zix_errno_status(const int e) switch (e) { case 0: return ZIX_STATUS_SUCCESS; +#ifdef EAGAIN + case EAGAIN: + return ZIX_STATUS_UNAVAILABLE; +#endif #ifdef EEXIST case EEXIST: return ZIX_STATUS_EXISTS; |