source: branches/libc-0.6/src/emx/include/sys/process.h

Last change on this file was 3809, checked in by bird, 11 years ago

0.6: s/const/const/g - just use the (now) standard 'const' everywhere in emx and kLIBC code. Avoid changing external code too much. fixes #279.

  • Property cvs2svn:cvs-rev set to 1.6
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.9 KB
Line 
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)
15typedef __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
49void abort (void) __attribute__ ((__noreturn__));
50int atexit (void (*)(void));
51int execl (const char *, const char *, ...);
52int execle (const char *, const char *, ...);
53int execlp (const char *, const char *, ...);
54int execlpe (const char *, const char *, ...);
55int execv (const char *, char * const *);
56int execve (const char *, char * const *, char * const *);
57int execvp (const char *, char * const *);
58int execvpe (const char *, char * const *, char * const *);
59void exit (int) __attribute__ ((__noreturn__));
60void _exit (int) __attribute__ ((__noreturn__));
61pid_t fork (void);
62pid_t getpid (void);
63pid_t getppid (void);
64int spawnl (int, const char *, const char *, ...);
65int spawnle (int, const char *, const char *, ...);
66int spawnlp (int, const char *, const char *, ...);
67int spawnlpe (int, const char *, const char *, ...);
68int spawnv (int, const char *, char * const *);
69int spawnve (int, const char *, char * const *, char * const *);
70int spawnvp (int, const char *, char * const *);
71int spawnvpe (int, const char *, char * const *, char * const *);
72int system (const char *);
73pid_t wait (int *);
74pid_t waitpid (pid_t, int *, int);
75
76int _execl (const char *, const char *, ...);
77int _execle (const char *, const char *, ...);
78int _execlp (const char *, const char *, ...);
79int _execlpe (const char *, const char *, ...);
80int _execv (const char *, char * const *);
81int _execve (const char *, char * const *, char * const *);
82int _execvp (const char *, char * const *);
83int _execvpe (const char *, char * const *, char * const *);
84int _fork (void);
85pid_t _getpid (void);
86pid_t _getppid (void);
87int _spawnl (int, const char *, const char *, ...);
88int _spawnle (int, const char *, const char *, ...);
89int _spawnlp (int, const char *, const char *, ...);
90int _spawnlpe (int, const char *, const char *, ...);
91int _spawnv (int, const char *, char * const *);
92int _spawnve (int, const char *, char * const *, char * const *);
93int _spawnvp (int, const char *, char * const *);
94int _spawnvpe (int, const char *, char * const *, char * const *);
95pid_t _wait (int *);
96pid_t _waitpid (pid_t, int *, int);
97
98__END_DECLS
99
100#endif /* not _SYS_PROCESS_H */
Note: See TracBrowser for help on using the repository browser.