diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2000-11-05 09:08:45 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2000-11-05 09:08:45 +0000 |
commit | 67e21e1eb2366f4598f8ee483dfbacc92010a687 (patch) | |
tree | 7d62334093443926fdef24bcc4ceb9a84a9eb7d6 /news4-posix.h | |
parent | fd496053df95abd3046a46729b1a12ae540b07ad (diff) |
- (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and
setsid() into more common files
Diffstat (limited to 'news4-posix.h')
-rw-r--r-- | news4-posix.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/news4-posix.h b/news4-posix.h index 87406793..af1cac3f 100644 --- a/news4-posix.h +++ b/news4-posix.h @@ -6,7 +6,6 @@ #define _NEWS4_POSIX_H #ifdef HAVE_NEWS4 - #include <sys/wait.h> typedef long clock_t; @@ -14,22 +13,5 @@ typedef long clock_t; /* FILE */ #define O_NONBLOCK 00004 /* non-blocking open */ -/* WAITPID */ -#undef WIFEXITED -#undef WIFSTOPPED -#undef WIFSIGNALED - -#define _W_INT(w) (*(int*)&(w)) /* convert union wait to int */ -#define WIFEXITED(w) (!((_W_INT(w)) & 0377)) -#define WIFSTOPPED(w) ((_W_INT(w)) & 0100) -#define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w)) -#define WEXITSTATUS(w) (int)(WIFEXITED(w) ? ((_W_INT(w) >> 8) & 0377) : -1) -#define WTERMSIG(w) (int)(WIFSIGNALED(w) ? (_W_INT(w) & 0177) : -1) -#define WCOREFLAG 0x80 -#define WCOREDUMP(w) ((_W_INT(w)) & WCOREFLAG) - -int waitpid(int pid,int *stat_loc,int options); -#define setsid() setpgrp(0, getpid()) - #endif /* HAVE_NEWS4 */ #endif /* _NEWS4_POSIX_H */ |