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.c | |
parent | fd496053df95abd3046a46729b1a12ae540b07ad (diff) |
- (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and
setsid() into more common files
Diffstat (limited to 'next-posix.c')
-rw-r--r-- | next-posix.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/next-posix.c b/next-posix.c index d5cc733d0..43ec0acd9 100644 --- a/next-posix.c +++ b/next-posix.c | |||
@@ -40,24 +40,6 @@ posix_wait(int *status) | |||
40 | return wait_pid; | 40 | return wait_pid; |
41 | } | 41 | } |
42 | 42 | ||
43 | pid_t | ||
44 | waitpid(int pid, int *stat_loc, int options) | ||
45 | { | ||
46 | union wait statusp; | ||
47 | pid_t wait_pid; | ||
48 | |||
49 | if (pid <= 0) { | ||
50 | if (pid != -1) { | ||
51 | errno = EINVAL; | ||
52 | return -1; | ||
53 | } | ||
54 | pid = 0; /* wait4() wants pid=0 for indiscriminate wait. */ | ||
55 | } | ||
56 | wait_pid = wait4(pid, &statusp, options, NULL); | ||
57 | stat_loc = (int *)statusp.w_status; | ||
58 | return wait_pid; | ||
59 | } | ||
60 | |||
61 | int | 43 | int |
62 | tcgetattr(int fd, struct termios *t) | 44 | tcgetattr(int fd, struct termios *t) |
63 | { | 45 | { |