2 *sys\stat.h - defines structure used by stat() and fstat()
4 * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
7 * This file defines the structure used by the stat() and fstat()
11 *******************************************************************************/
14 #ifndef NO_EXT_KEYS /* extensions enabled */
16 #else /* extensions not enabled */
18 #endif /* NO_EXT_KEYS */
20 #ifndef _TIME_T_DEFINED
22 #define _TIME_T_DEFINED
25 /* define structure for returning status information */
31 unsigned short st_mode;
44 #define S_IFMT 0170000 /* file type mask */
45 #define S_IFDIR 0040000 /* directory */
46 #define S_IFCHR 0020000 /* character special */
47 #define S_IFREG 0100000 /* regular */
48 #define S_IREAD 0000400 /* read permission, owner */
49 #define S_IWRITE 0000200 /* write permission, owner */
50 #define S_IEXEC 0000100 /* execute/search permission, owner */
53 /* function prototypes */
55 int CDECL fstat(int, struct stat *);
56 int CDECL stat(char *, struct stat *);