Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
wait.h
Go to the documentation of this file.
1 
4 #ifndef _TENOK_SYS_WAIT_H
5 #define _TENOK_SYS_WAIT_H
6 
7 #define WNOHANG 1
8 #define WUNTRACED 2
9 
10 #define WIFEXITED(s) (((s) &0x7f) == 0)
11 #define WEXITSTATUS(s) (((s) >> 8) & 0xff)
12 #define WIFSIGNALED(s) ((((s) &0x7f) + 1) >> 1 > 0)
13 #define WTERMSIG(s) ((s) &0x7f)
14 #define WIFSTOPPED(s) (((s) &0xff) == 0x7f)
15 #define WSTOPSIG(s) WEXITSTATUS(s)
16 #define WCOREDUMP(s) ((s) &0x80)
17 
26 int waitpid(int pid, int *status, int options);
27 
34 int wait(int *status);
35 
36 #endif
int wait(int *status)
Wait for any child process to change state. Tenok has no child processes, so the wait always reports ...
Definition: task.c:54
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 th...
Definition: task.c:48