errcodes.h revision 255e72915d4cbddceb435e13d81601755714e9f3
1/* Author: Karl MacMillan <kmacmillan@mentalrootkit.com> */ 2 3#ifndef __sepol_errno_h__ 4#define __sepol_errno_h__ 5 6#include <errno.h> 7 8#define SEPOL_OK 0 9 10/* These first error codes are defined for compatibility with 11 * previous version of libsepol. In the future, custome error 12 * codes that don't map to system error codes should be defined 13 * outside of the range of system error codes. 14 */ 15#define SEPOL_ERR -1 16#define SEPOL_ENOTSUP -2 /* feature not supported in module language */ 17#define SEPOL_EREQ -3 /* requirements not met */ 18 19/* Error codes that map to system error codes */ 20#define SEPOL_ENOMEM -ENOMEM 21#define SEPOL_ERANGE -ERANGE 22#define SEPOL_EEXIST -EEXIST 23#define SEPOL_ENOENT -ENOENT 24 25#endif 26