]> andersk Git - openssh.git/blobdiff - next-posix.c
- (djm) NeXT patch from Ben Lindstrom <mouring@pconline.com>
[openssh.git] / next-posix.c
index 0f0c0ea497ca10198a2aa27ded2e05806d01e8ab..7bb34ef0090d48ca3c6b6a99adce39061d54a3dc 100644 (file)
@@ -2,8 +2,36 @@
 
 #ifdef HAVE_NEXT
 #include <errno.h>
+#include <sys/wait.h>
 #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)
 {
This page took 0.07674 seconds and 4 git commands to generate.