summaryrefslogtreecommitdiff
path: root/v4.0/src/TOOLS/BLD/INC/SYS
diff options
context:
space:
mode:
authorGravatar Mark Zbikowski2024-04-25 21:24:10 +0100
committerGravatar Microsoft Open Source2024-04-25 22:32:27 +0000
commit2d04cacc5322951f187bb17e017c12920ac8ebe2 (patch)
tree80ee017efa878dfd5344b44249e6a241f2a7f6e2 /v4.0/src/TOOLS/BLD/INC/SYS
parentMerge pull request #430 from jpbaltazar/typoptbr (diff)
downloadms-dos-main.tar.gz
ms-dos-main.tar.xz
ms-dos-main.zip
MZ is back!HEADmain
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/SYS')
-rw-r--r--v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H16
-rw-r--r--v4.0/src/TOOLS/BLD/INC/SYS/STAT.H56
-rw-r--r--v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H39
-rw-r--r--v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H31
-rw-r--r--v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H40
5 files changed, 182 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H b/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H
new file mode 100644
index 0000000..fb76160
--- /dev/null
+++ b/v4.0/src/TOOLS/BLD/INC/SYS/LOCKING.H
@@ -0,0 +1,16 @@
1/***
2*sys\locking.h - flags for locking() function
3*
4* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
5*
6*Purpose:
7* This file defines the flags for the locking() function.
8* [System V]
9*
10*******************************************************************************/
11
12#define LK_UNLCK 0 /* unlock the file region */
13#define LK_LOCK 1 /* lock the file region */
14#define LK_NBLCK 2 /* non-blocking lock */
15#define LK_RLCK 3 /* lock for writing */
16#define LK_NBRLCK 4 /* non-blocking lock for writing */
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 *);
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H b/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H
new file mode 100644
index 0000000..46bf4ac
--- /dev/null
+++ b/v4.0/src/TOOLS/BLD/INC/SYS/TIMEB.H
@@ -0,0 +1,39 @@
1/***
2*sys\timeb.h - definition/declarations for ftime()
3*
4* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
5*
6*Purpose:
7* This file define the ftime() function and the types it uses.
8* [System V]
9*
10*******************************************************************************/
11
12
13#ifndef NO_EXT_KEYS /* extensions enabled */
14 #define CDECL cdecl
15#else /* extensions not enabled */
16 #define CDECL
17#endif /* NO_EXT_KEYS */
18
19#ifndef _TIME_T_DEFINED
20typedef long time_t;
21#define _TIME_T_DEFINED
22#endif
23
24/* structure returned by ftime system call */
25
26#ifndef _TIMEB_DEFINED
27struct timeb {
28 time_t time;
29 unsigned short millitm;
30 short timezone;
31 short dstflag;
32 };
33#define _TIMEB_DEFINED
34#endif
35
36
37/* function prototypes */
38
39void CDECL ftime(struct timeb *);
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H b/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H
new file mode 100644
index 0000000..84fc6b6
--- /dev/null
+++ b/v4.0/src/TOOLS/BLD/INC/SYS/TYPES.H
@@ -0,0 +1,31 @@
1/***
2*sys\types.h - types returned by system level calls for file and time info
3*
4* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
5*
6*Purpose:
7* This file defines types used in defining values returned by system
8* level calls for file status and time information.
9* [System V]
10*
11*******************************************************************************/
12
13#ifndef _INO_T_DEFINED
14typedef unsigned short ino_t; /* i-node number (not used on DOS) */
15#define _INO_T_DEFINED
16#endif
17
18#ifndef _TIME_T_DEFINED
19typedef long time_t;
20#define _TIME_T_DEFINED
21#endif
22
23#ifndef _DEV_T_DEFINED
24typedef short dev_t; /* device code */
25#define _DEV_T_DEFINED
26#endif
27
28#ifndef _OFF_T_DEFINED
29typedef long off_t; /* file offset value */
30#define _OFF_T_DEFINED
31#endif
diff --git a/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H b/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H
new file mode 100644
index 0000000..868756c
--- /dev/null
+++ b/v4.0/src/TOOLS/BLD/INC/SYS/UTIME.H
@@ -0,0 +1,40 @@
1/***
2*sys\utime.h - definitions/declarations for utime()
3*
4* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
5*
6*Purpose:
7* This file defines the structure used by the utime routine to set
8* new file access and modification times. NOTE - MS-DOS
9* does not recognize access time, so this field will
10* always be ignored and the modification time field will be
11* used to set the new time.
12*
13*******************************************************************************/
14
15
16#ifndef NO_EXT_KEYS /* extensions enabled */
17 #define CDECL cdecl
18#else /* extensions not enabled */
19 #define CDECL
20#endif /* NO_EXT_KEYS */
21
22#ifndef _TIME_T_DEFINED
23typedef long time_t;
24#define _TIME_T_DEFINED
25#endif
26
27/* define struct used by utime() function */
28
29#ifndef _UTIMBUF_DEFINED
30struct utimbuf {
31 time_t actime; /* access time */
32 time_t modtime; /* modification time */
33 };
34#define _UTIMBUF_DEFINED
35#endif
36
37
38/* function prototypes */
39
40int CDECL utime(char *, struct utimbuf *);