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

Annotation of src/usr.bin/tcfs/tcfsdefines.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:
                     13: #ifndef _TCFSDEFINES_H_
                     14: #define _TCFSDEFINES_H_
                     15:
                     16: #define UUKEYSIZE      ((KEYSIZE / 3 + (KEYSIZE % 3 ? 1 : 0)) * 4)
                     17: #define TRUE           1
                     18: #define FALSE          0
                     19: #define ONE            1 /* decrement key counter by 1 */
                     20: #define ALL            0 /* decrement key counter to 0 */
                     21: #define SET            1 /* set permanent flag */
                     22: #define UNSET          0 /* unset permanent flag */
                     23: #define NONE           2 /* no one of the previous */
                     24:
                     25: #define USERKEY                0
                     26: #define GROUPKEY       1
                     27:
                     28: typedef struct {
                     29:          u_int32_t flag;
                     30: } tcfs_flags;
                     31:
                     32: #endif /* _TCFSDEFINES_H_ */
                     33:
                     34: