Annotation of researchv9/cmd/cfront/CC/sys/stat.h, revision 1.1.1.1

1.1       root        1: 
                      2: struct stat
                      3: {
                      4:        dev_t   st_dev;
                      5:        ino_t   st_ino;
                      6:        unsigned short st_mode;
                      7:        short   st_nlink;
                      8:        short   st_uid;
                      9:        short   st_gid;
                     10:        dev_t   st_rdev;
                     11:        off_t   st_size;
                     12:        time_t  st_atime;
                     13:        time_t  st_mtime;
                     14:        time_t  st_ctime;
                     15: };
                     16: 
                     17: #define        S_IFMT  0170000         /* type of file */
                     18: #define                S_IFDIR 0040000 /* directory */
                     19: #define                S_IFCHR 0020000 /* character special */
                     20: #define                S_IFBLK 0060000 /* block special */
                     21: #define                S_IFREG 0100000 /* regular */
                     22: #define                S_IFLNK 0120000 /* symbolic link */
                     23: #define        S_ISUID 0004000         /* set user id on execution */
                     24: #define        S_ISGID 0002000         /* set group id on execution */
                     25: #define        S_ISVTX 0001000         /* save swapped text even after use */
                     26: #define        S_IREAD 0000400         /* read permission, owner */
                     27: #define        S_IWRITE 0000200        /* write permission, owner */
                     28: #define        S_IEXEC 0000100         /* execute/search permission, owner */
                     29: 
                     30: #ifdef _OVERLOAD_STAT
                     31: overload stat;                 /* sleazy string package hack */
                     32: #endif
                     33: 
                     34: int stat(char*, struct stat*);
                     35: int fstat(int, struct stat*);

unix.superglobalmegacorp.com

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