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 /next-posix.h | |
parent | fd496053df95abd3046a46729b1a12ae540b07ad (diff) |
- (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and
setsid() into more common files
Diffstat (limited to 'next-posix.h')
-rw-r--r-- | next-posix.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/next-posix.h b/next-posix.h index 96733230..b987b09c 100644 --- a/next-posix.h +++ b/next-posix.h @@ -25,7 +25,6 @@ #define _NEXT_POSIX_H #ifdef HAVE_NEXT - #include <sys/dir.h> /* NeXT's readdir() is BSD (struct direct) not POSIX (struct dirent) */ @@ -34,28 +33,10 @@ /* 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) - /* Swap out NeXT's BSD wait() for a more POSIX complient one */ pid_t posix_wait(int *status); #define wait(a) posix_wait(a) -/* MISC functions */ -#define setsid() setpgrp(0, getpid()) -pid_t waitpid(int pid, int *stat_loc, int options); - /* TERMCAP */ int tcgetattr(int fd, struct termios *t); int tcsetattr(int fd, int opt, const struct termios *t); |