2018-03-16 16:40:23 +03:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-12 05:15:40 +03:00
|
|
|
#include <_cheader.h>
|
2018-03-16 16:40:23 +03:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2018-10-12 05:15:40 +03:00
|
|
|
_Begin_C_Header
|
|
|
|
|
2018-08-12 10:36:44 +03:00
|
|
|
#define WNOHANG 0x0001
|
|
|
|
#define WUNTRACED 0x0002
|
|
|
|
#define WNOKERN 0x0010
|
2018-03-16 16:40:23 +03:00
|
|
|
|
2018-06-26 14:53:48 +03:00
|
|
|
/* This were taken from newlib, but they remain true */
|
|
|
|
#define WIFEXITED(w) (((w) & 0xff) == 0)
|
|
|
|
#define WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
|
|
|
|
#define WIFSTOPPED(w) (((w) & 0xff) == 0x7f)
|
|
|
|
#define WEXITSTATUS(w) (((w) >> 8) & 0xff)
|
|
|
|
#define WTERMSIG(w) ((w) & 0x7f)
|
|
|
|
#define WSTOPSIG WEXITSTATUS
|
|
|
|
|
|
|
|
|
2018-09-28 07:00:51 +03:00
|
|
|
#ifndef _KERNEL_
|
2018-03-16 16:40:23 +03:00
|
|
|
extern pid_t wait(int*);
|
|
|
|
extern pid_t waitpid(pid_t, int *, int);
|
2018-09-28 07:00:51 +03:00
|
|
|
#endif
|
2018-10-12 05:15:40 +03:00
|
|
|
|
|
|
|
_End_C_Header
|