1 |
39 |
lampret |
/* process.h. This file comes with MSDOS and WIN32 systems. */
|
2 |
|
|
|
3 |
|
|
#ifndef __PROCESS_H_
|
4 |
|
|
#define __PROCESS_H_
|
5 |
|
|
|
6 |
|
|
#ifdef __cplusplus
|
7 |
|
|
extern "C" {
|
8 |
|
|
#endif
|
9 |
|
|
|
10 |
|
|
int execl(const char *path, const char *argv0, ...);
|
11 |
|
|
int execle(const char *path, const char *argv0, ... /*, char * const *envp */);
|
12 |
|
|
int execlp(const char *path, const char *argv0, ...);
|
13 |
|
|
int execlpe(const char *path, const char *argv0, ... /*, char * const *envp */);
|
14 |
|
|
|
15 |
|
|
int execv(const char *path, char * const *argv);
|
16 |
|
|
int execve(const char *path, char * const *argv, char * const *envp);
|
17 |
|
|
int execvp(const char *path, char * const *argv);
|
18 |
|
|
int execvpe(const char *path, char * const *argv, char * const *envp);
|
19 |
|
|
|
20 |
|
|
int spawnl(int mode, const char *path, const char *argv0, ...);
|
21 |
|
|
int spawnle(int mode, const char *path, const char *argv0, ... /*, char * const *envp */);
|
22 |
|
|
int spawnlp(int mode, const char *path, const char *argv0, ...);
|
23 |
|
|
int spawnlpe(int mode, const char *path, const char *argv0, ... /*, char * const *envp */);
|
24 |
|
|
|
25 |
|
|
int spawnv(int mode, const char *path, const char * const *argv);
|
26 |
|
|
int spawnve(int mode, const char *path, char * const *argv, const char * const *envp);
|
27 |
|
|
int spawnvp(int mode, const char *path, const char * const *argv);
|
28 |
|
|
int spawnvpe(int mode, const char *path, const char * const *argv, const char * const *envp);
|
29 |
|
|
|
30 |
|
|
#ifdef __CYGWIN32__
|
31 |
|
|
/* Secure exec() functions family */
|
32 |
56 |
joel |
/* The first arg should really be a HANDLE which is a void *. But we
|
33 |
|
|
can't include windows.h here so... */
|
34 |
|
|
#include <sys/types.h>
|
35 |
|
|
pid_t sexecl(void *, const char *path, const char *argv0, ...);
|
36 |
|
|
pid_t sexecle(void *, const char *path, const char *argv0, ... /*, char * const *envp */);
|
37 |
|
|
pid_t sexeclp(void *, const char *path, const char *argv0, ...);
|
38 |
|
|
pid_t sexeclpe(void *, const char *path, const char *argv0, ... /*, char * const *envp */);
|
39 |
39 |
lampret |
|
40 |
56 |
joel |
pid_t sexecv(void *, const char *path, const char * const *argv);
|
41 |
|
|
pid_t sexecve(void *, const char *path, const char * const *argv, const char * const *envp);
|
42 |
|
|
pid_t sexecvp(void *, const char *path, const char * const *argv);
|
43 |
|
|
pid_t sexecvpe(void *, const char *path, const char * const *argv, const char * const *envp);
|
44 |
39 |
lampret |
#endif
|
45 |
|
|
|
46 |
|
|
int cwait(int *, int, int);
|
47 |
|
|
|
48 |
|
|
#define _P_WAIT 1
|
49 |
|
|
#define _P_NOWAIT 2 /* always generates error */
|
50 |
|
|
#define _P_OVERLAY 3
|
51 |
|
|
#define _P_NOWAITO 4
|
52 |
|
|
#define _P_DETACH 5
|
53 |
|
|
|
54 |
|
|
#define WAIT_CHILD 1
|
55 |
|
|
|
56 |
|
|
#ifdef __cplusplus
|
57 |
|
|
}
|
58 |
|
|
#endif
|
59 |
|
|
|
60 |
|
|
#endif
|