From b5628647ad1e48d026064e5acc0d8dc0b8021cfa Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Wed, 18 Oct 2000 00:02:25 +0000 Subject: - (bal) Changed from GNU rx to PCRE on suggestion from djm. - (bal) Integrated Sony NEWS-OS patches from NAKAJI Hirouyuki --- news4-posix.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 news4-posix.c (limited to 'news4-posix.c') 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 @@ +#include "config.h" + +#ifdef HAVE_NEWS4 +#include +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include "xmalloc.h" +#include "ssh.h" +#include "news4-posix.h" + +int +waitpid(int pid, int *stat_loc, int options) +{ + if (pid <= 0) { + if (pid != -1) { + errno = EINVAL; + return -1; + } + pid = 0; /* wait4() expects pid=0 for indiscriminate wait. */ + } + return wait4(pid, (union wait *)stat_loc, options, NULL); +} + +#endif /* HAVE_NEWS4 */ -- cgit v1.2.3