source: EcnlProtoTool/trunk/musl-1.1.18/include/sys/wait.h@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr
File size: 1.3 KB
Line 
1#ifndef _SYS_WAIT_H
2#define _SYS_WAIT_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7#include <features.h>
8
9#define __NEED_pid_t
10#define __NEED_id_t
11#include <bits/alltypes.h>
12
13typedef enum {
14 P_ALL = 0,
15 P_PID = 1,
16 P_PGID = 2
17} idtype_t;
18
19pid_t wait (int *);
20pid_t waitpid (pid_t, int *, int );
21
22#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
23 || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
24 || defined(_BSD_SOURCE)
25#include <signal.h>
26int waitid (idtype_t, id_t, siginfo_t *, int);
27#endif
28
29#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
30#include <sys/resource.h>
31pid_t wait3 (int *, int, struct rusage *);
32pid_t wait4 (pid_t, int *, int, struct rusage *);
33#endif
34
35#define WNOHANG 1
36#define WUNTRACED 2
37
38#define WSTOPPED 2
39#define WEXITED 4
40#define WCONTINUED 8
41#define WNOWAIT 0x1000000
42
43#define __WNOTHREAD 0x20000000
44#define __WALL 0x40000000
45#define __WCLONE 0x80000000
46
47#define WEXITSTATUS(s) (((s) & 0xff00) >> 8)
48#define WTERMSIG(s) ((s) & 0x7f)
49#define WSTOPSIG(s) WEXITSTATUS(s)
50#define WCOREDUMP(s) ((s) & 0x80)
51#define WIFEXITED(s) (!WTERMSIG(s))
52#define WIFSTOPPED(s) ((short)((((s)&0xffff)*0x10001)>>8) > 0x7f00)
53#define WIFSIGNALED(s) (((s)&0xffff)-1U < 0xffu)
54#define WIFCONTINUED(s) ((s) == 0xffff)
55
56#ifdef __cplusplus
57}
58#endif
59#endif
Note: See TracBrowser for help on using the repository browser.