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 |
|
|
#include <windows.h>
|
32 |
|
|
/* Secure exec() functions family */
|
33 |
|
|
pid_t sexecl(HANDLE, const char *path, const char *argv0, ...);
|
34 |
|
|
pid_t sexecle(HANDLE, const char *path, const char *argv0, ... /*, char * const *envp */);
|
35 |
|
|
pid_t sexeclp(HANDLE, const char *path, const char *argv0, ...);
|
36 |
|
|
pid_t sexeclpe(HANDLE, const char *path, const char *argv0, ... /*, char * const *envp */);
|
37 |
|
|
|
38 |
|
|
pid_t sexecv(HANDLE, const char *path, const char * const *argv);
|
39 |
|
|
pid_t sexecve(HANDLE, const char *path, const char * const *argv, const char * const *envp);
|
40 |
|
|
pid_t sexecvp(HANDLE, const char *path, const char * const *argv);
|
41 |
|
|
pid_t sexecvpe(HANDLE, const char *path, const char * const *argv, const char * const *envp);
|
42 |
|
|
#endif
|
43 |
|
|
|
44 |
|
|
int cwait(int *, int, int);
|
45 |
|
|
|
46 |
|
|
#define _P_WAIT 1
|
47 |
|
|
#define _P_NOWAIT 2 /* always generates error */
|
48 |
|
|
#define _P_OVERLAY 3
|
49 |
|
|
#define _P_NOWAITO 4
|
50 |
|
|
#define _P_DETACH 5
|
51 |
|
|
|
52 |
|
|
#define WAIT_CHILD 1
|
53 |
|
|
|
54 |
|
|
#ifdef __cplusplus
|
55 |
|
|
}
|
56 |
|
|
#endif
|
57 |
|
|
|
58 |
|
|
#endif
|