mirror of git://anongit.mindrot.org/openssh.git
- (bal) Imported NEWS-OS waitpid() macros into NeXT. Since implementation
is more correct then current version.
This commit is contained in:
parent
81fa28abaa
commit
e5a8525242
|
@ -1,5 +1,7 @@
|
||||||
20001020
|
20001020
|
||||||
- (djm) Don't define _REENTRANT for SNI/Reliant Unix
|
- (djm) Don't define _REENTRANT for SNI/Reliant Unix
|
||||||
|
- (bal) Imported NEWS-OS waitpid() macros into NeXT. Since implementation
|
||||||
|
is more correct then current version.
|
||||||
|
|
||||||
20001018
|
20001018
|
||||||
- (stevesk) Add initial support for setproctitle(). Current
|
- (stevesk) Add initial support for setproctitle(). Current
|
||||||
|
|
11
next-posix.h
11
next-posix.h
|
@ -39,11 +39,14 @@
|
||||||
#undef WIFSTOPPED
|
#undef WIFSTOPPED
|
||||||
#undef WIFSIGNALED
|
#undef WIFSIGNALED
|
||||||
|
|
||||||
#define WIFEXITED(w) (!((w) & 0377))
|
#define _W_INT(w) (*(int*)&(w)) /* convert union wait to int */
|
||||||
#define WIFSTOPPED(w) ((w) & 0100)
|
#define WIFEXITED(w) (!((_W_INT(w)) & 0377))
|
||||||
|
#define WIFSTOPPED(w) ((_W_INT(w)) & 0100)
|
||||||
#define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w))
|
#define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w))
|
||||||
#define WEXITSTATUS(w) (int)(WIFEXITED(w) ? (((w) >> 8) & 0377) : -1)
|
#define WEXITSTATUS(w) (int)(WIFEXITED(w) ? ((_W_INT(w) >> 8) & 0377) : -1)
|
||||||
#define WTERMSIG(w) (int)(WIFSIGNALED(w) ? ((w) & 0177) : -1)
|
#define WTERMSIG(w) (int)(WIFSIGNALED(w) ? (_W_INT(w) & 0177) : -1)
|
||||||
|
#define WCOREFLAG 0x80
|
||||||
|
#define WCOREDUMP(w) ((_W_INT(w)) & WCOREFLAG)
|
||||||
|
|
||||||
/* Swap out the next 'BSDish' wait() for a more POSIX complient one */
|
/* Swap out the next 'BSDish' wait() for a more POSIX complient one */
|
||||||
pid_t posix_wait(int *status);
|
pid_t posix_wait(int *status);
|
||||||
|
|
Loading…
Reference in New Issue