summaryrefslogtreecommitdiff
path: root/next-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'next-posix.c')
-rw-r--r--next-posix.c18
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
43pid_t
44waitpid(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
61int 43int
62tcgetattr(int fd, struct termios *t) 44tcgetattr(int fd, struct termios *t)
63{ 45{