[BACK]Return to tcfserrors.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / tcfs

Annotation of src/usr.bin/tcfs/tcfserrors.h, Revision 1.2

1.1       provos      1: /*
                      2:  *     Transparent Cryptographic File System (TCFS) for NetBSD
                      3:  *     Author and mantainer:   Luigi Catuogno [luicat@tcfs.unisa.it]
                      4:  *
                      5:  *     references:             http://tcfs.dia.unisa.it
                      6:  *                             tcfs-bsd@tcfs.unisa.it
                      7:  */
                      8:
                      9: /*
                     10:  *     Base utility set v0.1
                     11:  */
                     12:
                     13: #ifndef _ERRORS_H
                     14: #define _ERRORS_H
                     15:
                     16: enum
                     17: {
                     18:        OK=0,          /* Ok, no error */
                     19:        ER_CUSTOM,     /* Custom error message */
                     20:        ER_UNKOPT,     /* Unknown command line option */
                     21:        ER_AUTH,       /* User authentication error */
                     22:        ER_MEM,        /* Out of memory error */
                     23:        ER_TCFS,       /* User is not allowed to use TCFS */
                     24:        ER_USER,                        /* User error */
                     25:        ER_PERM,       /* Error calling TCFS_IOC_PERMANENT ioctl */
                     26:        ER_ENABLE,     /* Error calling TCFS_IOC_LOGIN ioctl */
                     27:        ER_DISABLE,    /* Error calling TCFS_IOC_DISABLE ioctl */
                     28:        ER_COUNT       /* Error calling TCFS_IOC_COUNT ioctl */
                     29: };
                     30:
                     31: static char *tcfs_errors_strings[]=
                     32: {
                     33:        "Ok",
                     34:        NULL,
                     35:        "unknow option.",
                     36:        "authentication error.",
                     37:        "out of memory.",
                     38:        "you do not have a TCFS key.",
                     39:        "Who are you?!",
                     40:        "ioctl error while setting permanent flag.",
                     41:        "ioctl error while sending.",
                     42:        "ioctl error while removing key.",
                     43:        "ioctl error while getting key counter."
                     44: };
                     45:
                     46: void tcfs_error (int error_type, char *arg);
                     47:
                     48: #endif
                     49:
                     50: /* End of errors.h */