summaryrefslogtreecommitdiff
path: root/news4-posix.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2000-11-05 09:08:45 +0000
committerBen Lindstrom <mouring@eviladmin.org>2000-11-05 09:08:45 +0000
commit67e21e1eb2366f4598f8ee483dfbacc92010a687 (patch)
tree7d62334093443926fdef24bcc4ceb9a84a9eb7d6 /news4-posix.c
parentfd496053df95abd3046a46729b1a12ae540b07ad (diff)
- (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and
setsid() into more common files
Diffstat (limited to 'news4-posix.c')
-rw-r--r--news4-posix.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/news4-posix.c b/news4-posix.c
deleted file mode 100644
index b1a289f7a..000000000
--- a/news4-posix.c
+++ /dev/null
@@ -1,39 +0,0 @@
1#include "config.h"
2
3#ifdef HAVE_NEWS4
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7#include <errno.h>
8#include <unistd.h>
9
10#include <sys/types.h>
11#include <sys/stat.h>
12#include <fcntl.h>
13
14#include <sys/fcntl.h>
15#include <sys/ioctl.h>
16#include <sys/time.h>
17#include <sys/file.h>
18#include <errno.h>
19#include <termios.h>
20#include <sys/wait.h>
21
22#include "xmalloc.h"
23#include "ssh.h"
24#include "news4-posix.h"
25
26int
27waitpid(int pid, int *stat_loc, int options)
28{
29 if (pid <= 0) {
30 if (pid != -1) {
31 errno = EINVAL;
32 return -1;
33 }
34 pid = 0; /* wait4() expects pid=0 for indiscriminate wait. */
35 }
36 return wait4(pid, (union wait *)stat_loc, options, NULL);
37}
38
39#endif /* HAVE_NEWS4 */