summaryrefslogtreecommitdiff
path: root/v4.0/src/TOOLS/BLD/INC/PROCESS.H
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/PROCESS.H')
-rw-r--r--v4.0/src/TOOLS/BLD/INC/PROCESS.H65
1 files changed, 65 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/PROCESS.H b/v4.0/src/TOOLS/BLD/INC/PROCESS.H
new file mode 100644
index 0000000..f0c85f3
--- /dev/null
+++ b/v4.0/src/TOOLS/BLD/INC/PROCESS.H
@@ -0,0 +1,65 @@
1/***
2*process.h - definition and declarations for process control functions
3*
4* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
5*
6*Purpose:
7* This file defines the modeflag values for spawnxx calls. Only
8* P_WAIT and P_OVERLAY are currently implemented on DOS 2 & 3.
9* P_NOWAIT is also enabled on DOS 4. Also contains the function
10* argument declarations for all process control related routines.
11*
12*******************************************************************************/
13
14
15#ifndef NO_EXT_KEYS /* extensions enabled */
16 #define _CDECL cdecl
17 #define _NEAR near
18#else /* extensions not enabled */
19 #define _CDECL
20 #define _NEAR
21#endif /* NO_EXT_KEYS */
22
23
24/* modeflag values for spawnxx routines */
25
26extern int _NEAR _CDECL _p_overlay;
27
28#define P_WAIT 0
29#define P_NOWAIT 1
30#define P_OVERLAY _p_overlay
31#define OLD_P_OVERLAY 2
32#define P_NOWAITO 3
33
34
35/* Action Codes used with Cwait() */
36
37#define WAIT_CHILD 0
38#define WAIT_GRANDCHILD 1
39
40
41/* function prototypes */
42
43void _CDECL abort(void);
44int _CDECL cwait(int *, int, int);
45int _CDECL execl(char *, char *, ...);
46int _CDECL execle(char *, char *, ...);
47int _CDECL execlp(char *, char *, ...);
48int _CDECL execlpe(char *, char *, ...);
49int _CDECL execv(char *, char * *);
50int _CDECL execve(char *, char * *, char * *);
51int _CDECL execvp(char *, char * *);
52int _CDECL execvpe(char *, char * *, char * *);
53void _CDECL exit(int);
54void _CDECL _exit(int);
55int _CDECL getpid(void);
56int _CDECL spawnl(int, char *, char *, ...);
57int _CDECL spawnle(int, char *, char *, ...);
58int _CDECL spawnlp(int, char *, char *, ...);
59int _CDECL spawnlpe(int, char *, char *, ...);
60int _CDECL spawnv(int, char *, char * *);
61int _CDECL spawnve(int, char *, char * *, char * *);
62int _CDECL spawnvp(int, char *, char * *);
63int _CDECL spawnvpe(int, char *, char * *, char * *);
64int _CDECL system(const char *);
65int _CDECL wait(int *);