Annotation of coherent/f/usr/include/common/_imode.h, revision 1.1.1.1

1.1       root        1: #ifndef        __COMMON__IMODE_H__
                      2: #define        __COMMON__IMODE_H__
                      3: 
                      4: /*
                      5:  * This header defines constants used within Coherent as the basis for
                      6:  * determining file modes. Mode information is used within the filesystem
                      7:  * and at user level; this set of internal definitions is used as the
                      8:  * basis for both.
                      9:  */
                     10: 
                     11: enum {
                     12:        __IFPIP =       0x1000,
                     13:        __IFFIFO =      __IFPIP,
                     14:        __IFCHR =       0x2000,
                     15:        __IFDIR =       0x4000,
                     16:        __IFBLK =       0x6000,
                     17: 
                     18: #if    -1U < 0x10000UL
                     19: /*
                     20:  * Integers are only 16 bits, so these cannot be enumeration constants.
                     21:  */
                     22: #define        __IFREG         0x8000
                     23: #define        __IFMT          0xF000
                     24: #else
                     25:        __IFREG =       0x8000,
                     26:        __IFMT =        0xF000,
                     27: #endif
                     28:        __ISUID =       0x0800,
                     29:        __ISGID =       0x0400,
                     30:        __ISVTX =       0x0200,
                     31: 
                     32:        __IRUSR =       0x0100,
                     33:        __IWUSR =       0x0080,
                     34:        __IXUSR =       0x0040,
                     35:        __IRGRP =       0x0020,
                     36:        __IWGRP =       0x0010,
                     37:        __IXGRP =       0x0008,
                     38:        __IROTH =       0x0004,
                     39:        __IWOTH =       0x0002,
                     40:        __IXOTH =       0x0001,
                     41: 
                     42:        __IRWXU =       (__IRUSR | __IWUSR | __IXUSR),
                     43:        __IRWXG =       (__IRGRP | __IWGRP | __IXGRP),
                     44:        __IRWXO =       (__IROTH | __IWOTH | __IXOTH),
                     45: 
                     46:        /*
                     47:         * Common synonyms.
                     48:         */
                     49: 
                     50:        __IREAD =       __IRUSR,
                     51:        __IWRITE =      __IWUSR,
                     52:        __IEXEC =       __IXUSR
                     53: };
                     54: 
                     55: #endif /* ! defined (__COMMON__IMODE_H__) */
                     56: 
                     57:        

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.