Tizen RT Libs&Environment  v1.0 D5
wait.h File Reference
#include <sys/types.h>
#include <signal.h>
Include dependency graph for wait.h:

Go to the source code of this file.

Macros

#define WEXITSTATUS(s)   (((s) >> 8) & 0xff) /* Return exit status */
 
#define WIFEXITED(s)   (((s) & 0xff) == 0) /* True: Child exited normally */
 
#define WIFCONTINUED(s)   (false) /* True: Child has been continued */
 
#define WIFSIGNALED(s)   (false) /* True: Child exited due to uncaught signal */
 
#define WIFSTOPPED(s)   (false) /* True: Child is currently stopped */
 
#define WSTOPSIG(s)   (false) /* Return signal number that caused process to stop */
 
#define WTERMSIG(s)   (false) /* Return signal number that caused process to terminate */
 
#define WCONTINUED   (1 << 0) /* Status for child that has been continued (1)(2) */
 
#define WNOHANG   (1 << 1) /* Do not wait if status not available (1) (2) */
 
#define WUNTRACED   (1 << 2) /* Report status of stopped child process (1) */
 
#define WEXITED   (1 << 3) /* Wait for processes that have exited (2) */
 
#define WSTOPPED   (1 << 4) /* Status for child stopped on signal (2) */
 
#define WNOWAIT   (1 << 5) /* Keep the process in a waitable state (2) */
 
#define EXTERN   extern
 

Typedefs

typedef enum idtype_e idtype_t
 

Enumerations

Functions

EXTERN pid_t wait (FAR int *stat_loc)
 suspend execution of the calling thread More...
 
EXTERN int waitid (idtype_t idtype, id_t id, FAR siginfo_t *info, int options)
 suspend execution of the calling thread More...
 
EXTERN pid_t waitpid (pid_t pid, FAR int *stat_loc, int options)
 suspend execution of the calling thread More...
 

Macro Definition Documentation

#define EXTERN   extern

Definition at line 122 of file wait.h.

#define WCONTINUED   (1 << 0) /* Status for child that has been continued (1)(2) */

Definition at line 90 of file wait.h.

#define WEXITED   (1 << 3) /* Wait for processes that have exited (2) */

Definition at line 93 of file wait.h.

#define WEXITSTATUS (   s)    (((s) >> 8) & 0xff) /* Return exit status */

Definition at line 77 of file wait.h.

#define WIFCONTINUED (   s)    (false) /* True: Child has been continued */

Definition at line 80 of file wait.h.

#define WIFEXITED (   s)    (((s) & 0xff) == 0) /* True: Child exited normally */

Definition at line 78 of file wait.h.

#define WIFSIGNALED (   s)    (false) /* True: Child exited due to uncaught signal */

Definition at line 81 of file wait.h.

#define WIFSTOPPED (   s)    (false) /* True: Child is currently stopped */

Definition at line 82 of file wait.h.

#define WNOHANG   (1 << 1) /* Do not wait if status not available (1) (2) */

Definition at line 91 of file wait.h.

#define WNOWAIT   (1 << 5) /* Keep the process in a waitable state (2) */

Definition at line 95 of file wait.h.

#define WSTOPPED   (1 << 4) /* Status for child stopped on signal (2) */

Definition at line 94 of file wait.h.

#define WSTOPSIG (   s)    (false) /* Return signal number that caused process to stop */

Definition at line 83 of file wait.h.

#define WTERMSIG (   s)    (false) /* Return signal number that caused process to terminate */

Definition at line 84 of file wait.h.

#define WUNTRACED   (1 << 2) /* Report status of stopped child process (1) */

Definition at line 92 of file wait.h.

Typedef Documentation

typedef enum idtype_e idtype_t

Definition at line 111 of file wait.h.