X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/448398010b1049eea3b418c9ef0fbb6593f32771..84a770d1e44d6932d0a46c71510258e6f75be1d9:/next-posix.c diff --git a/next-posix.c b/next-posix.c index 0f0c0ea4..7bb34ef0 100644 --- a/next-posix.c +++ b/next-posix.c @@ -2,8 +2,36 @@ #ifdef HAVE_NEXT #include +#include #include "next-posix.h" +pid_t +posix_wait(int *status) +{ + #undef wait /* Use NeXT's wait() function */ + union wait statusp; + pid_t wait_pid; + + wait_pid = wait(&statusp); + status = (int *) statusp.w_status; + + return wait_pid; +} + + +int +posix_utime(char *filename,struct utimbuf *buf) +{ + time_t timep[2]; + + timep[0] = buf->actime; + timep[1] = buf->modtime; + + #undef utime /* Use NeXT's utime() function */ + return utime(filename,timep); +} + + int waitpid(int pid, int *stat_loc, int options) {