From 67e21e1eb2366f4598f8ee483dfbacc92010a687 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Sun, 5 Nov 2000 09:08:45 +0000 Subject: - (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and setsid() into more common files --- news4-posix.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 news4-posix.c (limited to 'news4-posix.c') 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 @@ -#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