diff options
Diffstat (limited to 'news4-posix.c')
-rw-r--r-- | news4-posix.c | 39 |
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 | |||
26 | int | ||
27 | waitpid(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 */ | ||