summaryrefslogtreecommitdiff
path: root/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/SYS/STAT.H')
-rw-r--r--v4.0/src/TOOLS/BLD/INC/SYS/STAT.H56
1 files changed, 56 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H b/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H
new file mode 100644
index 0000000..4259208
--- /dev/null
+++ b/v4.0/src/TOOLS/BLD/INC/SYS/STAT.H
@@ -0,0 +1,56 @@
1/***
2*sys\stat.h - defines structure used by stat() and fstat()
3*
4* Copyright (c) 1985-1988, 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 NO_EXT_KEYS /* extensions enabled */
15 #define CDECL cdecl
16#else /* extensions not enabled */
17 #define CDECL
18#endif /* NO_EXT_KEYS */
19
20#ifndef _TIME_T_DEFINED
21typedef long time_t;
22#define _TIME_T_DEFINED
23#endif
24
25/* define structure for returning status information */
26
27#ifndef _STAT_DEFINED
28struct stat {
29 dev_t st_dev;
30 ino_t st_ino;
31 unsigned short st_mode;
32 short st_nlink;
33 short st_uid;
34 short st_gid;
35 dev_t st_rdev;
36 off_t st_size;
37 time_t st_atime;
38 time_t st_mtime;
39 time_t st_ctime;
40 };
41#define _STAT_DEFINED
42#endif
43
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 */
51
52
53/* function prototypes */
54
55int CDECL fstat(int, struct stat *);
56int CDECL stat(char *, struct stat *);