summaryrefslogtreecommitdiff
path: root/next-posix.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-08-30 10:11:30 +1100
committerDamien Miller <djm@mindrot.org>2000-08-30 10:11:30 +1100
commit77aba9d02490a7cac75c15d44ef6f9a9a79d3fbf (patch)
tree5069a5e33c4fce6076b5278db4fda464e0690f2a /next-posix.c
parent9a94734d25ff8a632fd1dd3114d64e79a99474ba (diff)
- (djm) NeXT patch from Ben Lindstrom <mouring@pconline.com>
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{