Annotation of src/usr.bin/tcfs/tcfserrors.h, Revision 1.4
1.4 ! fgsch 1: /* $OpenBSD$ */
! 2:
1.1 provos 3: /*
4: * Transparent Cryptographic File System (TCFS) for NetBSD
5: * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it]
6: *
7: * references: http://tcfs.dia.unisa.it
8: * tcfs-bsd@tcfs.unisa.it
9: */
10:
11: /*
12: * Base utility set v0.1
13: */
14:
15: #ifndef _ERRORS_H
16: #define _ERRORS_H
17:
18: enum
19: {
1.3 fgsch 20: OK=0, /* Ok, no error */
21: ER_CUSTOM, /* Custom error message */
22: ER_UNKOPT, /* Unknown command line option */
23: ER_AUTH, /* User authentication error */
24: ER_MEM, /* Out of memory error */
25: ER_TCFS, /* User is not allowed to use TCFS */
26: ER_USER, /* User error */
27: ER_PERM, /* Error calling TCFS_IOC_PERMANENT ioctl */
28: ER_ENABLE, /* Error calling TCFS_IOC_LOGIN ioctl */
29: ER_DISABLE, /* Error calling TCFS_IOC_DISABLE ioctl */
30: ER_COUNT /* Error calling TCFS_IOC_COUNT ioctl */
1.1 provos 31: };
32:
1.3 fgsch 33: void tcfs_error __P((int, char *));
1.1 provos 34:
35: #endif