Annotation of coherent/f/usr/include/sys/file.h, revision 1.1.1.1

1.1       root        1: #ifndef        __SYS_FILE_H__
                      2: #define        __SYS_FILE_H__
                      3: 
                      4: /*
                      5:  * This file contains constants and definitions used by the System V DDI/DKI.
                      6:  *
                      7:  * Note that the information defined here has been compiled from published
                      8:  * information, so it is likely to be incomplete. Futhermore, the exact binary
                      9:  * values of the constants are not defined in any currently published
                     10:  * documentation, so we have assigned values that will almost certainly not
                     11:  * match the System V definitions.
                     12:  */
                     13: 
                     14: /*
                     15:  * A bit mask of flags that correspond more-or-less to the definitions in the
                     16:  * <sys/fcntl.h> file, except that in <sys/file.h> the read/write information
                     17:  * is not in a bitmask as it is below.
                     18:  *
                     19:  * These values are used in calls to device-driver open () and close () entry
                     20:  * points under the DDI/DKI.
                     21:  */
                     22: 
                     23: enum {
                     24:        FREAD           = 1,
                     25:        FWRITE          = 2,
                     26:        FNDELAY         = 4,            /* == O_NDELAY */
                     27:        FNONBLOCK       = 0x80,         /* == O_NONBLOCK */
                     28:        FEXCL           = 0x400         /* == O_EXCL */
                     29: };
                     30: 
                     31: 
                     32: #if    ! _SYSV4 || _SYSV3
                     33: /*
                     34:  * In order to be able to use old-style Coherent facilities without having to
                     35:  * try to use the old Coherent header files (it isn't worth it) we make some
                     36:  * funky random constants visible here.
                     37:  */
                     38: 
                     39: /*
                     40:  * Permission bits. Beware! There are only 16 bits available.
                     41:  */
                     42: enum {
                     43:        IPE             = 0x01,                 /* Execute */
                     44:        IPW             = 0x02,                 /* Write */
                     45:        IPR             = 0x04,                 /* Read */
                     46: 
                     47:        /*
                     48:         * Modifier bits for fdopen().
                     49:         */
                     50: 
                     51:        IPNDLY          = 0x08,
                     52:        IPAPPEND        = 0x10,
                     53: 
                     54:        IPSYNC          = 0x20,
                     55:        IPEXCL          = 0x40,
                     56:        IPNOCTTY        = 0x80,
                     57: 
                     58:        IPNONBLOCK      = 0x100
                     59: };
                     60: 
                     61: #endif
                     62: 
                     63: #endif /* ! defined (__SYS_FILE_H__) */

unix.superglobalmegacorp.com

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