2019-02-24 15:19:32 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
2019-05-30 15:12:09 +02:00
|
|
|
#define WEXITSTATUS(status) (((status)&0xff00) >> 8)
|
|
|
|
|
#define WTERMSIG(status) ((status)&0x7f)
|
|
|
|
|
#define WIFEXITED(status) (WTERMSIG(status) == 0)
|
2019-07-14 11:31:34 +02:00
|
|
|
#define WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
|
2019-05-30 15:12:09 +02:00
|
|
|
#define WIFSIGNALED(status) (((char)(((status)&0x7f) + 1) >> 1) > 0)
|
|
|
|
|
|
2019-02-26 12:57:02 +01:00
|
|
|
#define WNOHANG 1
|
2019-05-30 15:12:09 +02:00
|
|
|
#define WUNTRACED 2
|
|
|
|
|
#define WSTOPPED WUNTRACED
|
|
|
|
|
#define WEXITED 4
|
|
|
|
|
#define WCONTINUED 8
|
|
|
|
|
|
2019-02-24 15:19:32 +01:00
|
|
|
pid_t wait(int* wstatus);
|
|
|
|
|
|
|
|
|
|
__END_DECLS
|