From 93eb717f520d68d27bfe110d48057cdd54a4a2bc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 18:47:57 -0400 Subject: Fix semaphore error handling Note that existing code which uses zix_sem_try_wait() may still compile against this change, but be incorrect! --- src/status.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/status.c b/src/status.c index 2ca3fe8..cbb3d36 100644 --- a/src/status.c +++ b/src/status.c @@ -25,6 +25,10 @@ zix_strerror(const ZixStatus status) return "Bad permissions"; case ZIX_STATUS_REACHED_END: return "Reached end"; + case ZIX_STATUS_TIMEOUT: + return "Timeout"; + case ZIX_STATUS_OVERFLOW: + return "Overflow"; } return "Unknown error"; } -- cgit v1.2.1