|
|
1.1 ! root 1: /*** ! 2: *sys\stat.h - defines structure used by stat() and fstat() ! 3: * ! 4: * Copyright (c) 1985-1990, 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: ! 14: #ifndef _TIME_T_DEFINED ! 15: typedef long time_t; ! 16: #define _TIME_T_DEFINED ! 17: #endif ! 18: ! 19: /* define structure for returning status information */ ! 20: ! 21: #ifndef _STAT_DEFINED ! 22: struct stat { ! 23: dev_t st_dev; ! 24: ino_t st_ino; ! 25: unsigned short st_mode; ! 26: short st_nlink; ! 27: short st_uid; ! 28: short st_gid; ! 29: dev_t st_rdev; ! 30: off_t st_size; ! 31: time_t st_atime; ! 32: time_t st_mtime; ! 33: time_t st_ctime; ! 34: }; ! 35: #define _STAT_DEFINED ! 36: #endif ! 37: ! 38: #define S_IFMT 0170000 /* file type mask */ ! 39: #define S_IFDIR 0040000 /* directory */ ! 40: #define S_IFCHR 0020000 /* character special */ ! 41: #define S_IFREG 0100000 /* regular */ ! 42: #define S_IREAD 0000400 /* read permission, owner */ ! 43: #define S_IWRITE 0000200 /* write permission, owner */ ! 44: #define S_IEXEC 0000100 /* execute/search permission, owner */ ! 45: ! 46: ! 47: /* function prototypes */ ! 48: ! 49: int _cdecl fstat(int, struct stat *); ! 50: int _cdecl stat(char *, struct stat *);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.