Annotation of mstools/h/sys/stat.h, revision 1.1.1.2

1.1       root        1: /***
                      2: *sys\stat.h - defines structure used by stat() and fstat()
                      3: *
                      4: *      Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
                      5: *
                      6: *Purpose:
                      7: *      This file defines the structure used by the _stat() and _fstat()
                      8: *      routines.
                      9: *      [System V]
                     10: *
                     11: ****/
                     12: 
                     13: #ifndef _INC_STAT
                     14: 
                     15: #ifdef __cplusplus
                     16: extern "C" {
                     17: #endif
                     18: 
                     19: 
1.1.1.2 ! root       20: #ifndef MIPS
1.1       root       21: #if (_MSC_VER <= 600)
                     22: #define __cdecl _cdecl
                     23: #endif
1.1.1.2 ! root       24: #endif
1.1       root       25: 
                     26: #ifndef _TIME_T_DEFINED
                     27: typedef long time_t;
                     28: #define _TIME_T_DEFINED
                     29: #endif
                     30: 
                     31: /* define structure for returning status information */
                     32: 
                     33: #ifndef _STAT_DEFINED
                     34: 
                     35: 
                     36: struct _stat {
                     37:        _dev_t st_dev;
                     38:        _ino_t st_ino;
                     39:        unsigned short st_mode;
                     40:        short st_nlink;
                     41:        short st_uid;
                     42:        short st_gid;
                     43:        _dev_t st_rdev;
                     44:        _off_t st_size;
                     45:        time_t st_atime;
                     46:        time_t st_mtime;
                     47:        time_t st_ctime;
                     48:        };
                     49: 
                     50: #if !__STDC__
                     51: /* Non-ANSI name for compatibility */
                     52: // stat already mapped to _stat below
                     53: #endif
                     54: 
                     55: 
                     56: #define _STAT_DEFINED
                     57: #endif
                     58: 
                     59: #define _S_IFMT        0170000         /* file type mask */
                     60: #define _S_IFDIR       0040000         /* directory */
                     61: #define _S_IFCHR       0020000         /* character special */
                     62: #define _S_IFREG       0100000         /* regular */
                     63: #define _S_IREAD       0000400         /* read permission, owner */
                     64: #define _S_IWRITE      0000200         /* write permission, owner */
                     65: #define _S_IEXEC       0000100         /* execute/search permission, owner */
                     66: 
                     67: 
                     68: /* function prototypes */
                     69: 
                     70: int _fstat(int, struct _stat *);
                     71: int _stat(char *, struct _stat *);
                     72: 
                     73: #if !__STDC__
                     74: /* Non-ANSI names for compatibility */
                     75: 
                     76: #define S_IFMT  _S_IFMT
                     77: #define S_IFDIR  _S_IFDIR
                     78: #define S_IFCHR  _S_IFCHR
                     79: #define S_IFREG  _S_IFREG
                     80: #define S_IREAD  _S_IREAD
                     81: #define S_IWRITE _S_IWRITE
                     82: #define S_IEXEC  _S_IEXEC
                     83: 
                     84: #define fstat   _fstat
                     85: #define stat    _stat
                     86: 
                     87: #endif /* __STDC__ */
                     88: 
                     89: #ifdef __cplusplus
                     90: }
                     91: #endif
                     92: 
                     93: #define _INC_STAT
                     94: #endif /* _INC_STAT */

unix.superglobalmegacorp.com

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