summaryrefslogtreecommitdiffstats
path: root/include/zix/common.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 18:47:57 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 19:23:41 -0400
commit93eb717f520d68d27bfe110d48057cdd54a4a2bc (patch)
tree39be097ac1cb678e1b2df3087f6d83d78c382e52 /include/zix/common.h
parent35c7e80281ff6079b6e89dd421addd0a5f6b8b2c (diff)
downloadzix-93eb717f520d68d27bfe110d48057cdd54a4a2bc.tar.gz
zix-93eb717f520d68d27bfe110d48057cdd54a4a2bc.tar.bz2
zix-93eb717f520d68d27bfe110d48057cdd54a4a2bc.zip
Fix semaphore error handling
Note that existing code which uses zix_sem_try_wait() may still compile against this change, but be incorrect!
Diffstat (limited to 'include/zix/common.h')
-rw-r--r--include/zix/common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/zix/common.h b/include/zix/common.h
index c0944b5..2d5133f 100644
--- a/include/zix/common.h
+++ b/include/zix/common.h
@@ -25,7 +25,9 @@ typedef enum {
ZIX_STATUS_EXISTS,
ZIX_STATUS_BAD_ARG,
ZIX_STATUS_BAD_PERMS,
- ZIX_STATUS_REACHED_END
+ ZIX_STATUS_REACHED_END,
+ ZIX_STATUS_TIMEOUT,
+ ZIX_STATUS_OVERFLOW,
} ZixStatus;
/// Return a string describing a status code