diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2000-11-05 09:08:45 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2000-11-05 09:08:45 +0000 |
commit | 67e21e1eb2366f4598f8ee483dfbacc92010a687 (patch) | |
tree | 7d62334093443926fdef24bcc4ceb9a84a9eb7d6 /news4-posix.c | |
parent | fd496053df95abd3046a46729b1a12ae540b07ad (diff) |
- (bal) Reworked NEWS-OS and NeXT ports to extract waitpid() and
setsid() into more common files
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 b1a289f7..00000000 --- a/news4-posix.c +++ /dev/null @@ -1,39 +0,0 @@ -#include "config.h" - -#ifdef HAVE_NEWS4 -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <errno.h> -#include <unistd.h> - -#include <sys/types.h> -#include <sys/stat.h> -#include <fcntl.h> - -#include <sys/fcntl.h> -#include <sys/ioctl.h> -#include <sys/time.h> -#include <sys/file.h> -#include <errno.h> -#include <termios.h> -#include <sys/wait.h> - -#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 */ |