search for: need_waitpid

Displaying 1 result from an estimated 1 matches for "need_waitpid".

2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...viron + 2) * sizeof(char *)); + if (nenv == NULL) + return -1; + eptr = environ; + environ = nenv; + while ((*nenv = *eptr) != NULL) + nenv++, eptr++; + *nenv = s; + nenv[1] = NULL; + return 0; +} /* end putenv() */ +#endif /* !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) */ + +#ifdef NEED_WAITPID +int +waitpid(pid, stat_loc, options) + 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,...