error.h

Go to the documentation of this file.
00001 /************************************* */
00002 /* Rule Set Based Access Control       */
00003 /* Author and (c) 1999,2000: Amon Ott  */
00004 /* Helper functions for all parts      */
00005 /* Last modified: 29/Sep/2000          */
00006 /************************************* */
00007 
00008 #ifndef __RSBAC_ERROR_H
00009 #define __RSBAC_ERROR_H
00010 
00011 #ifdef __KERNEL__
00012 #include <linux/errno.h>
00013 #else
00014 #include <errno.h>
00015 #endif
00016 
00017 /* Error values             */
00018 
00019 #define RSBAC_EPERM               1001
00020 #define RSBAC_EACCESS             1002
00021 #define RSBAC_EREADFAILED         1003
00022 #define RSBAC_EWRITEFAILED        1004
00023 #define RSBAC_EINVALIDPOINTER     1005
00024 #define RSBAC_ENOROOTDIR          1006
00025 #define RSBAC_EPATHTOOLONG        1007
00026 #define RSBAC_ENOROOTDEV          1008
00027 #define RSBAC_ENOTFOUND           1009
00028 #define RSBAC_ENOTINITIALIZED     1010
00029 #define RSBAC_EREINIT             1011
00030 #define RSBAC_ECOULDNOTADDDEVICE  1012
00031 #define RSBAC_ECOULDNOTADDITEM    1013
00032 #define RSBAC_ECOULDNOTCREATEPATH 1014
00033 #define RSBAC_EINVALIDATTR        1015
00034 #define RSBAC_EINVALIDDEV         1016
00035 #define RSBAC_EINVALIDTARGET      1017
00036 #define RSBAC_EINVALIDVALUE       1018
00037 #define RSBAC_EEXISTS             1019
00038 #define RSBAC_EINTERNONLY         1020
00039 #define RSBAC_EINVALIDREQUEST     1021
00040 #define RSBAC_ENOTWRITABLE        1022
00041 #define RSBAC_EMALWAREDETECTED    1023
00042 #define RSBAC_ENOMEM              1024
00043 #define RSBAC_EDECISIONMISMATCH   1025
00044 #define RSBAC_EINVALIDVERSION     1026
00045 #define RSBAC_EINVALIDMODULE      1027
00046 #define RSBAC_EEXPIRED            1028
00047 #define RSBAC_EMUSTCHANGE         1029
00048 #define RSBAC_EBUSY               1030
00049 #define RSBAC_EINVALIDTRANSACTION 1031
00050 
00051 #define RSBAC_EMAX 1031
00052 
00053 #define RSBAC_ERROR( res ) ((res <= -RSBAC_EPERM) && (res >= -RSBAC_EMAX))
00054 
00055 #ifndef __KERNEL__
00056 /* exit on error */
00057 void error_exit(int error);
00058 
00059 /* show error */
00060 void show_error(int error);
00061 #endif
00062 
00063 #endif

Generated on Fri Jun 17 09:45:18 2005 for RSBAC by  doxygen 1.4.2