]> wirehaze git hosting - MS-DOS.git/blob - v4.0/src/TOOLS/BLD/INC/PROCESS.H

wirehaze git hosting

MZ is back!
[MS-DOS.git] / v4.0 / src / TOOLS / BLD / INC / PROCESS.H
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
26 extern 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
43 void _CDECL abort(void);
44 int _CDECL cwait(int *, int, int);
45 int _CDECL execl(char *, char *, ...);
46 int _CDECL execle(char *, char *, ...);
47 int _CDECL execlp(char *, char *, ...);
48 int _CDECL execlpe(char *, char *, ...);
49 int _CDECL execv(char *, char * *);
50 int _CDECL execve(char *, char * *, char * *);
51 int _CDECL execvp(char *, char * *);
52 int _CDECL execvpe(char *, char * *, char * *);
53 void _CDECL exit(int);
54 void _CDECL _exit(int);
55 int _CDECL getpid(void);
56 int _CDECL spawnl(int, char *, char *, ...);
57 int _CDECL spawnle(int, char *, char *, ...);
58 int _CDECL spawnlp(int, char *, char *, ...);
59 int _CDECL spawnlpe(int, char *, char *, ...);
60 int _CDECL spawnv(int, char *, char * *);
61 int _CDECL spawnve(int, char *, char * *, char * *);
62 int _CDECL spawnvp(int, char *, char * *);
63 int _CDECL spawnvpe(int, char *, char * *, char * *);
64 int _CDECL system(const char *);
65 int _CDECL wait(int *);