summaryrefslogtreecommitdiff
path: root/next-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'next-posix.c')
-rw-r--r--next-posix.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/next-posix.c b/next-posix.c
index 0f0c0ea49..7bb34ef00 100644
--- a/next-posix.c
+++ b/next-posix.c
@@ -2,8 +2,36 @@
2 2
3#ifdef HAVE_NEXT 3#ifdef HAVE_NEXT
4#include <errno.h> 4#include <errno.h>
5#include <sys/wait.h>
5#include "next-posix.h" 6#include "next-posix.h"
6 7
8pid_t
9posix_wait(int *status)
10{
11 #undef wait /* Use NeXT's wait() function */
12 union wait statusp;
13 pid_t wait_pid;
14
15 wait_pid = wait(&statusp);
16 status = (int *) statusp.w_status;
17
18 return wait_pid;
19}
20
21
22int
23posix_utime(char *filename,struct utimbuf *buf)
24{
25 time_t timep[2];
26
27 timep[0] = buf->actime;
28 timep[1] = buf->modtime;
29
30 #undef utime /* Use NeXT's utime() function */
31 return utime(filename,timep);
32}
33
34
7int 35int
8waitpid(int pid, int *stat_loc, int options) 36waitpid(int pid, int *stat_loc, int options)
9{ 37{