Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
Macros | Functions
wait.h File Reference

Go to the source code of this file.

Macros

#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)
 

Functions

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...
 

Function Documentation

◆ wait()

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.

Parameters
statusWhere 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
pidThe process to wait for.
statusWhere to store the status of the process.
optionsFlags altering how the wait behaves.
Return values
int-1 with errno set to ECHILD.