Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
[error] add some more ERR_ defines
Browse files Browse the repository at this point in the history
  • Loading branch information
travisg authored and Ajay Dudani committed Jul 28, 2011
1 parent c713ab8 commit f6e2207
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/err.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#ifndef __ERR_H
#define __ERR_H

#include <sys/types.h> // for status_t

#define NO_ERROR 0
#define ERROR -1
#define ERR_NOT_FOUND -2
Expand All @@ -37,5 +39,17 @@
#define ERR_OBJECT_DESTROYED -11
#define ERR_NOT_BLOCKED -12
#define ERR_TIMED_OUT -13
#define ERR_ALREADY_EXISTS -14
#define ERR_CHANNEL_CLOSED -15
#define ERR_OFFLINE -16
#define ERR_NOT_ALLOWED -17
#define ERR_BAD_PATH -18
#define ERR_ALREADY_MOUNTED -19
#define ERR_IO -20
#define ERR_NOT_DIR -21
#define ERR_NOT_FILE -22
#define ERR_RECURSE_TOO_DEEP -23
#define ERR_NOT_SUPPORTED -24
#define ERR_TOO_BIG -25

#endif

0 comments on commit f6e2207

Please sign in to comment.