1 | /* $Id: $ */
|
---|
2 | /** @file
|
---|
3 | * EMX
|
---|
4 | */
|
---|
5 |
|
---|
6 | #ifndef _SYS_PROCESS_H
|
---|
7 | #define _SYS_PROCESS_H
|
---|
8 |
|
---|
9 | #include <sys/cdefs.h>
|
---|
10 | #include <sys/_types.h>
|
---|
11 |
|
---|
12 | __BEGIN_DECLS
|
---|
13 |
|
---|
14 | #if !defined(_PID_T_DECLARED) && !defined(_PID_T)
|
---|
15 | typedef __pid_t pid_t;
|
---|
16 | #define _PID_T_DECLARED
|
---|
17 | #define _PID_T
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | #if !defined (P_WAIT)
|
---|
21 | #define P_WAIT 0
|
---|
22 | #define P_NOWAIT 1
|
---|
23 | #define P_OVERLAY 2
|
---|
24 | #define P_DEBUG 3
|
---|
25 | #define P_SESSION 4
|
---|
26 | #define P_DETACH 5
|
---|
27 | #define P_PM 6
|
---|
28 |
|
---|
29 | #define P_DEFAULT 0x0000
|
---|
30 | #define P_MINIMIZE 0x0100
|
---|
31 | #define P_MAXIMIZE 0x0200
|
---|
32 | #define P_FULLSCREEN 0x0300
|
---|
33 | #define P_WINDOWED 0x0400
|
---|
34 |
|
---|
35 | #define P_FOREGROUND 0x0000
|
---|
36 | #define P_BACKGROUND 0x1000
|
---|
37 |
|
---|
38 | #define P_NOCLOSE 0x2000
|
---|
39 | #define P_NOSESSION 0x4000
|
---|
40 |
|
---|
41 | #define P_QUOTE 0x10000
|
---|
42 | #define P_TILDE 0x20000
|
---|
43 | #define P_UNRELATED 0x40000
|
---|
44 | #define P_DEBUGDESC 0x80000
|
---|
45 | #define P_NOUNIXARGV 0x100000
|
---|
46 |
|
---|
47 | #endif
|
---|
48 |
|
---|
49 | void abort (void) __attribute__ ((__noreturn__));
|
---|
50 | int atexit (void (*)(void));
|
---|
51 | int execl (const char *, const char *, ...);
|
---|
52 | int execle (const char *, const char *, ...);
|
---|
53 | int execlp (const char *, const char *, ...);
|
---|
54 | int execlpe (const char *, const char *, ...);
|
---|
55 | int execv (const char *, char * const *);
|
---|
56 | int execve (const char *, char * const *, char * const *);
|
---|
57 | int execvp (const char *, char * const *);
|
---|
58 | int execvpe (const char *, char * const *, char * const *);
|
---|
59 | void exit (int) __attribute__ ((__noreturn__));
|
---|
60 | void _exit (int) __attribute__ ((__noreturn__));
|
---|
61 | pid_t fork (void);
|
---|
62 | pid_t getpid (void);
|
---|
63 | pid_t getppid (void);
|
---|
64 | int spawnl (int, const char *, const char *, ...);
|
---|
65 | int spawnle (int, const char *, const char *, ...);
|
---|
66 | int spawnlp (int, const char *, const char *, ...);
|
---|
67 | int spawnlpe (int, const char *, const char *, ...);
|
---|
68 | int spawnv (int, const char *, char * const *);
|
---|
69 | int spawnve (int, const char *, char * const *, char * const *);
|
---|
70 | int spawnvp (int, const char *, char * const *);
|
---|
71 | int spawnvpe (int, const char *, char * const *, char * const *);
|
---|
72 | int system (const char *);
|
---|
73 | pid_t wait (int *);
|
---|
74 | pid_t waitpid (pid_t, int *, int);
|
---|
75 |
|
---|
76 | int _execl (const char *, const char *, ...);
|
---|
77 | int _execle (const char *, const char *, ...);
|
---|
78 | int _execlp (const char *, const char *, ...);
|
---|
79 | int _execlpe (const char *, const char *, ...);
|
---|
80 | int _execv (const char *, char * const *);
|
---|
81 | int _execve (const char *, char * const *, char * const *);
|
---|
82 | int _execvp (const char *, char * const *);
|
---|
83 | int _execvpe (const char *, char * const *, char * const *);
|
---|
84 | int _fork (void);
|
---|
85 | pid_t _getpid (void);
|
---|
86 | pid_t _getppid (void);
|
---|
87 | int _spawnl (int, const char *, const char *, ...);
|
---|
88 | int _spawnle (int, const char *, const char *, ...);
|
---|
89 | int _spawnlp (int, const char *, const char *, ...);
|
---|
90 | int _spawnlpe (int, const char *, const char *, ...);
|
---|
91 | int _spawnv (int, const char *, char * const *);
|
---|
92 | int _spawnve (int, const char *, char * const *, char * const *);
|
---|
93 | int _spawnvp (int, const char *, char * const *);
|
---|
94 | int _spawnvpe (int, const char *, char * const *, char * const *);
|
---|
95 | pid_t _wait (int *);
|
---|
96 | pid_t _waitpid (pid_t, int *, int);
|
---|
97 |
|
---|
98 | __END_DECLS
|
---|
99 |
|
---|
100 | #endif /* not _SYS_PROCESS_H */
|
---|