diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2000-10-18 00:02:25 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2000-10-18 00:02:25 +0000 |
commit | b5628647ad1e48d026064e5acc0d8dc0b8021cfa (patch) | |
tree | 645c6dc3a5b3b0e24ec4f7308e9fc1b7823bb0fa /news4-posix.c | |
parent | 2594de81d301188108c1accbd4f937a86d70db1c (diff) |
- (bal) Changed from GNU rx to PCRE on suggestion from djm.
- (bal) Integrated Sony NEWS-OS patches from NAKAJI Hirouyuki
<nakaji@tutrp.tut.ac.jp>
Diffstat (limited to 'news4-posix.c')
-rw-r--r-- | news4-posix.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/news4-posix.c b/news4-posix.c new file mode 100644 index 000000000..b1a289f7a --- /dev/null +++ b/news4-posix.c | |||
@@ -0,0 +1,39 @@ | |||
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 */ | ||