source: vendor/emx/current/include/sys/wait.h

Last change on this file was 18, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 678 bytes
Line 
1/* sys/wait.h (emx+gcc) */
2
3#ifndef _SYS_WAIT_H
4#define _SYS_WAIT_H
5
6#if defined (__cplusplus)
7extern "C" {
8#endif
9
10#define WNOHANG 1
11#define WUNTRACED 2
12
13#define WIFEXITED(st) (((st) & 0x7f) == 0)
14#define WIFSIGNALED(st) (((st) & 0x7f) != 0x7f && ((st) & 0x7f) != 0)
15#define WIFSTOPPED(st) (((st) & 0x7f) == 0x7f)
16
17#define WEXITSTATUS(st) ((st) >> 8)
18#define WTERMSIG(st) ((st) & 0x7f)
19#define WSTOPSIG(st) ((st) >> 8)
20
21int wait (int *);
22int waitpid (int, int *, int);
23
24#if !defined (_POSIX_SOURCE) || defined (_WITH_UNDERSCORE)
25
26int _wait (int *);
27int _waitpid (int, int *, int);
28
29#endif
30
31#if defined (__cplusplus)
32}
33#endif
34
35#endif /* not SYS_WAIT_H */
Note: See TracBrowser for help on using the repository browser.