[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.1.1.1

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:  *       $Source: /usr/src/tcfs-utils_0.1/include/RCS/tcfserrors.h,v $
                     13:  *        $State: Exp $
                     14:  *     $Revision: 1.1 $
                     15:  *       $Author: luicat $
                     16:  *         $Date: 2000/01/14 13:45:28 $
                     17:  *
                     18:  */
                     19:
                     20: /* RCS_HEADER_ENDS_HERE */
                     21:
                     22:
                     23:
                     24:
                     25: #ifndef _ERRORS_H
                     26: #define _ERRORS_H
                     27:
                     28: enum
                     29: {
                     30:        OK=0,          /* Ok, no error */
                     31:        ER_CUSTOM,     /* Custom error message */
                     32:        ER_UNKOPT,     /* Unknown command line option */
                     33:        ER_AUTH,       /* User authentication error */
                     34:        ER_MEM,        /* Out of memory error */
                     35:        ER_TCFS,       /* User is not allowed to use TCFS */
                     36:        ER_USER,                        /* User error */
                     37:        ER_PERM,       /* Error calling TCFS_IOC_PERMANENT ioctl */
                     38:        ER_ENABLE,     /* Error calling TCFS_IOC_LOGIN ioctl */
                     39:        ER_DISABLE,    /* Error calling TCFS_IOC_DISABLE ioctl */
                     40:        ER_COUNT       /* Error calling TCFS_IOC_COUNT ioctl */
                     41: };
                     42:
                     43: static char *tcfs_errors_strings[]=
                     44: {
                     45:        "Ok",
                     46:        NULL,
                     47:        "unknow option.",
                     48:        "authentication error.",
                     49:        "out of memory.",
                     50:        "you do not have a TCFS key.",
                     51:        "Who are you?!",
                     52:        "ioctl error while setting permanent flag.",
                     53:        "ioctl error while sending.",
                     54:        "ioctl error while removing key.",
                     55:        "ioctl error while getting key counter."
                     56: };
                     57:
                     58: void tcfs_error (int error_type, char *arg);
                     59:
                     60: #endif
                     61:
                     62: /* End of errors.h */