]> andersk Git - openssh.git/blobdiff - next-posix.h
20010115
[openssh.git] / next-posix.h
index 967332308f3edbed55abb11684ef656b358b17cd..3e16dacb9cb34a2a46078bde0f15f2c159f6171e 100644 (file)
 #define _NEXT_POSIX_H
 
 #ifdef HAVE_NEXT
-
 #include <sys/dir.h>
 
 /* NeXT's readdir() is BSD (struct direct) not POSIX (struct dirent) */
 #define dirent direct
 
-/* FILE */
-#define O_NONBLOCK     00004   /* non-blocking open */
-
-/* WAITPID */
-#undef WIFEXITED
-#undef WIFSTOPPED
-#undef WIFSIGNALED
-
-#define _W_INT(w)      (*(int*)&(w))   /* convert union wait to int */
-#define WIFEXITED(w)   (!((_W_INT(w)) & 0377))
-#define WIFSTOPPED(w)  ((_W_INT(w)) & 0100)
-#define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w))
-#define WEXITSTATUS(w) (int)(WIFEXITED(w) ? ((_W_INT(w) >> 8) & 0377) : -1)
-#define WTERMSIG(w)    (int)(WIFSIGNALED(w) ? (_W_INT(w) & 0177) : -1)
-#define WCOREFLAG      0x80
-#define WCOREDUMP(w)   ((_W_INT(w)) & WCOREFLAG)
-
 /* Swap out NeXT's BSD wait() for a more POSIX complient one */
 pid_t posix_wait(int *status);
 #define wait(a) posix_wait(a)
 
-/* MISC functions */
-#define setsid() setpgrp(0, getpid())
-pid_t waitpid(int pid, int *stat_loc, int options);
+/* #ifdef wrapped functions that need defining for clean compiling */
+pid_t getppid(void);
+void vhangup(void);
+int innetgr(const char *netgroup, const char *host, const char *user, 
+            const char *domain);
 
 /* TERMCAP */
 int tcgetattr(int fd, struct termios *t);
This page took 0.0302 seconds and 4 git commands to generate.