|
|
1.1 root 1: /***
2: *process.h - definition and declarations for process control functions
3: *
4: * Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
5: *
6: *Purpose:
7: * This file defines the modeflag values for spawnxx calls.
8: * Only P_WAIT and P_OVERLAY are currently implemented on MS-DOS.
9: * Also contains the function argument declarations for all
10: * process control related routines.
11: *
12: ****/
13:
14: #ifndef _INC_PROCESS
15:
16: #ifdef __cplusplus
17: extern "C" {
18: #endif
19:
20:
1.1.1.2 ! root 21: #ifndef MIPS
1.1 root 22: #if (_MSC_VER <= 600)
23: #define __cdecl _cdecl
24: #endif
1.1.1.2 ! root 25: #endif
1.1 root 26:
27: /* modeflag values for _spawnxx routines */
28:
29: #ifndef _MT
30: extern int _p_overlay;
31: #endif
32:
33: #define _P_WAIT 0
34: #define _P_NOWAIT 1
35: #ifdef _MT
36: #define _P_OVERLAY 2
37: #else
38: #define _P_OVERLAY _p_overlay
39: #endif
40: #define _OLD_P_OVERLAY 2
41: #define _P_NOWAITO 3
42: #define _P_DETACH 4
43:
44:
45: /* action codes used with _cwait() */
46:
47: #define _WAIT_CHILD 0
48: #define _WAIT_GRANDCHILD 1
49:
50:
51: /* function prototypes */
52:
53: #ifdef _MT
54: unsigned long _beginthread (void (*) (void *),
55: unsigned, void *);
56: void _endthread(void);
57: #endif
58: void abort(void);
59: void _cexit(void);
60: void _c_exit(void);
61: int _cwait(int *, int, int);
62: int _execl(const char *, const char *, ...);
63: int _execle(const char *, const char *, ...);
64: int _execlp(const char *, const char *, ...);
65: int _execlpe(const char *, const char *, ...);
66: int _execv(const char *, const char * const *);
67: int _execve(const char *, const char * const *, const char * const *);
68: int _execvp(const char *, const char * const *);
69: int _execvpe(const char *, const char * const *, const char * const *);
70: void exit(int);
71: void _exit(int);
72: int _getpid(void);
73: int _spawnl(int, const char *, const char *, ...);
74: int _spawnle(int, const char *, const char *, ...);
75: int _spawnlp(int, const char *, const char *, ...);
76: int _spawnlpe(int, const char *, const char *, ...);
77: int _spawnv(int, const char *, const char * const *);
78: int _spawnve(int, const char *, const char * const *,
79: const char * const *);
80: int _spawnvp(int, const char *, const char * const *);
81: int _spawnvpe(int, const char *, const char * const *,
82: const char * const *);
83: int system(const char *);
84: int _wait(int *);
85: int _loaddll(char *);
86: int _unloaddll(int);
87: int (* _getdllprocaddr(int, char *, int))();
88:
89: #if !__STDC__
90: /* Non-ANSI names for compatibility */
91:
92: #define P_WAIT _P_WAIT
93: #define P_NOWAIT _P_NOWAIT
94: #define P_OVERLAY _P_OVERLAY
95: #define OLD_P_OVERLAY _OLD_P_OVERLAY
96: #define P_NOWAITO _P_NOWAITO
97: #define P_DETACH _P_DETACH
98:
99: #define WAIT_CHILD _WAIT_CHILD
100: #define WAIT_GRANDCHILD _WAIT_GRANDCHILD
101:
102: #define cwait _cwait
103: #define execl _execl
104: #define execle _execle
105: #define execlp _execlp
106: #define execlpe _execlpe
107: #define execv _execv
108: #define execve _execve
109: #define execvp _execvp
110: #define execvpe _execvpe
111: #define getpid _getpid
112: #define spawnl _spawnl
113: #define spawnle _spawnle
114: #define spawnlp _spawnlp
115: #define spawnlpe _spawnlpe
116: #define spawnv _spawnv
117: #define spawnve _spawnve
118: #define spawnvp _spawnvp
119: #define spawnvpe _spawnvpe
120: #define wait _wait
121:
122: #endif
123:
124: #ifdef __cplusplus
125: }
126: #endif
127:
128: #define _INC_PROCESS
129: #endif /* _INC_PROCESS */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.