diff options
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; |