Go to the source code of this file.
|
|
#define | WNOHANG 1 |
| |
|
#define | WUNTRACED 2 |
| |
|
#define | WIFEXITED(s) (((s) &0x7f) == 0) |
| |
|
#define | WEXITSTATUS(s) (((s) >> 8) & 0xff) |
| |
|
#define | WIFSIGNALED(s) ((((s) &0x7f) + 1) >> 1 > 0) |
| |
|
#define | WTERMSIG(s) ((s) &0x7f) |
| |
|
#define | WIFSTOPPED(s) (((s) &0xff) == 0x7f) |
| |
|
#define | WSTOPSIG(s) WEXITSTATUS(s) |
| |
|
#define | WCOREDUMP(s) ((s) &0x80) |
| |
|
| int | waitpid (int pid, int *status, int options) |
| | Wait for a child process to change state. Tenok has no child processes, so the wait always reports that there are none. More...
|
| |
| int | wait (int *status) |
| | Wait for any child process to change state. Tenok has no child processes, so the wait always reports that there are none. More...
|
| |
◆ wait()
Wait for any child process to change state. Tenok has no child processes, so the wait always reports that there are none.
- Parameters
-
| status | Where to store the status of the process. |
- Return values
-
| int | -1 with errno set to ECHILD. |
◆ waitpid()
| int waitpid |
( |
int |
pid, |
|
|
int * |
status, |
|
|
int |
options |
|
) |
| |
Wait for a child process to change state. Tenok has no child processes, so the wait always reports that there are none.
- Parameters
-
| pid | The process to wait for. |
| status | Where to store the status of the process. |
| options | Flags altering how the wait behaves. |
- Return values
-
| int | -1 with errno set to ECHILD. |