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

1.1       root        1: /* (-lgl
                      2:  *     COHERENT Version 3.0
                      3:  *     Copyright (c) 1982, 1990 by Mark Williams Company.
                      4:  *     All rights reserved. May not be copied without permission.
                      5:  -lgl) */
                      6: /*
                      7:  * Stat.
                      8:  */
                      9: 
                     10: #ifndef         __SYS_OSTAT_H__
                     11: #define         __SYS_OSTAT_H__
                     12: 
                     13: #include <sys/types.h>
                     14: 
                     15: /*
                     16:  * Structure returned by stat and fstat system calls.
                     17:  */
                     18: #pragma align 2
                     19: struct oldstat {
                     20:        dev_t    st_dev;                /* Device */
                     21:        ino_t    st_ino;                /* Inode number */
                     22:        unsigned short st_mode;         /* Mode */
                     23:        short    st_nlink;              /* Link count */
                     24:        short    st_uid;                /* User id */
                     25:        short    st_gid;                /* Group id */
                     26:        dev_t    st_rdev;               /* Real device */
                     27:        long     st_size;               /* Size */
                     28:        long     st_atime;              /* Access time */
                     29:        long     st_mtime;              /* Modify time */
                     30:        long     st_ctime;              /* Change time */
                     31: };
                     32: #pragma align
                     33: 
                     34: /*
                     35:  * Modes.
                     36:  */
                     37: #define S_IFMT 0170000                 /* Type */
                     38: #define S_IFDIR        0040000                 /* Directory */
                     39: #define S_IFCHR        0020000                 /* Character special */
                     40: #define S_IFBLK        0060000                 /* Block special */
                     41: #define S_IFREG        0100000                 /* Regular */
                     42: #define S_IFMPC        0030000                 /* Multiplexed character special */
                     43: #define S_IFMPB        0070000                 /* Multiplexed block special */
                     44: #define        S_IFPIP 0010000                 /* Pipe */
                     45: #define        S_ISUID 0004000                 /* Set user id on execution */
                     46: #define S_ISGID        0002000                 /* Set group id on execution */
                     47: #define        S_ISVTX 0001000                 /* Save swapped text even after use */
                     48: #define S_IREAD        0000400                 /* Read permission, owner */
                     49: #define S_IWRITE 000200                        /* Write permission, owner */
                     50: #define S_IEXEC        0000100                 /* Execute/search permission, owner */
                     51: 
                     52: /*
                     53:  * Non existant device.
                     54:  */
                     55: #define NODEV  (-1)
                     56: 
                     57: /*
                     58:  * Functions.
                     59:  */
                     60: #define        major(dev)      ((dev>>8)&0377)
                     61: #define minor(dev)     (dev&0377)
                     62: #define makedev(m1, m2)        ((m1<<8)|m2)
                     63: 
                     64: #endif

unix.superglobalmegacorp.com

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