2 * Defines and prototypes specific to NeXT system
13 /* readdir() returns struct direct (BSD) not struct dirent (POSIX) */
16 /* POSIX utime() struct */
23 #define O_NONBLOCK 00004 /* non-blocking open */
30 #define WIFEXITED(w) (!((w) & 0377))
31 #define WIFSTOPPED(w) ((w) & 0100)
32 #define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w))
33 #define WEXITSTATUS(w) (int)(WIFEXITED(w) ? ((w >> 8) & 0377) : -1)
34 #define WTERMSIG(w) (int)(WIFSIGNALED(w) ? (w & 0177) : -1)
35 #define WCOREFLAG 0x80
36 #define WCOREDUMP(w) ((w) & WCOREFLAG)
38 /* POSIX "wrapper" functions to replace to BSD functions */
39 int posix_utime(char *filename, struct utimbuf *buf); /* new utime() */
40 #define utime posix_utime
42 pid_t posix_wait(int *status); /* new wait() */
43 #define wait posix_wait
46 int waitpid(int pid,int *stat_loc,int options);
50 int tcgetattr(int fd,struct termios *t);
51 int tcsetattr(int fd,int opt,const struct termios *t);
52 int tcsetpgrp(int fd, pid_t pgrp);
53 speed_t cfgetospeed(const struct termios *t);
54 speed_t cfgetispeed(const struct termios *t);
55 int cfsetospeed(struct termios *t,int speed);
58 #endif /* HAVE_NEXT */
59 #endif /* _NEXT_POSIX_H */