]> andersk Git - openssh.git/blob - news4-posix.c
- (bal) Changed from GNU rx to PCRE on suggestion from djm.
[openssh.git] / news4-posix.c
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 */
This page took 0.091181 seconds and 5 git commands to generate.