00001
00002
00003
00004
00005
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
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
00047 #define RSBAC_EMAX 1027
00048
00049 #define RSBAC_ERROR( res ) ((res <= -RSBAC_EPERM) && (res >= -RSBAC_EMAX))
00050
00051
#ifndef __KERNEL__
00052
00053
void error_exit(
int error);
00054
00055
00056
void show_error(
int error);
00057
#endif
00058
00059
#endif