VirtualBox

source: kBuild/branches/kBuild-0.1.5/src/ash/win/sys/wait.h@ 2321

最後變更 在這個檔案從2321是 819,由 bird 提交於 18 年 前

More svn:eol-style fixes.

  • 屬性 svn:eol-style 設為 native
檔案大小: 965 位元組
 
1#ifndef __sys_wait_h__
2#define __sys_wait_h__
3
4#include "mscfakes.h"
5
6#define WNOHANG 1 /* Don't hang in wait. */
7#define WUNTRACED 2 /* Tell about stopped, untraced children. */
8#define WCONTINUED 4 /* Report a job control continued process. */
9#define _W_INT(w) (*(int *)&(w)) /* Convert union wait to int. */
10#define WCOREFLAG 0200
11
12#define _WSTATUS(x) (_W_INT(x) & 0177)
13#define _WSTOPPED 0177 /* _WSTATUS if process is stopped */
14#define WIFSTOPPED(x) (_WSTATUS(x) == _WSTOPPED)
15#define WSTOPSIG(x) (_W_INT(x) >> 8)
16#define WIFSIGNALED(x) (_WSTATUS(x) != 0 && !WIFSTOPPED(x) && !WIFCONTINUED(x)) /* bird: made GLIBC tests happy. */
17#define WTERMSIG(x) (_WSTATUS(x))
18#define WIFEXITED(x) (_WSTATUS(x) == 0)
19#define WEXITSTATUS(x) (_W_INT(x) >> 8)
20#define WIFCONTINUED(x) (x == 0x13) /* 0x13 == SIGCONT */
21#define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG)
22#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
23#define W_STOPCODE(sig) ((sig) << 8 | _WSTOPPED)
24
25#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette