diff options
Diffstat (limited to 'next-posix.h')
-rw-r--r-- | next-posix.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/next-posix.h b/next-posix.h index 077b132e4..fc06e41bc 100644 --- a/next-posix.h +++ b/next-posix.h | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <sys/dir.h> | 10 | #include <sys/dir.h> |
11 | 11 | ||
12 | /* readdir() returns struct direct (BSD) not struct dirent (POSIX) */ | 12 | /* readdir() returns struct direct (BSD) not struct dirent (POSIX) */ |
13 | #define dirent direct | 13 | #define dirent direct |
14 | 14 | ||
15 | /* POSIX utime() struct */ | 15 | /* POSIX utime() struct */ |
16 | struct utimbuf { | 16 | struct utimbuf { |
@@ -19,7 +19,7 @@ struct utimbuf { | |||
19 | }; | 19 | }; |
20 | 20 | ||
21 | /* FILE */ | 21 | /* FILE */ |
22 | #define O_NONBLOCK 00004 /* non-blocking open */ | 22 | #define O_NONBLOCK 00004 /* non-blocking open */ |
23 | 23 | ||
24 | /* WAITPID */ | 24 | /* WAITPID */ |
25 | #undef WIFEXITED | 25 | #undef WIFEXITED |
@@ -29,8 +29,8 @@ struct utimbuf { | |||
29 | #define WIFEXITED(w) (!((w) & 0377)) | 29 | #define WIFEXITED(w) (!((w) & 0377)) |
30 | #define WIFSTOPPED(w) ((w) & 0100) | 30 | #define WIFSTOPPED(w) ((w) & 0100) |
31 | #define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w)) | 31 | #define WIFSIGNALED(w) (!WIFEXITED(w) && !WIFSTOPPED(w)) |
32 | #define WEXITSTATUS(w) (int)(WIFEXITED(w) ? ((w >> 8) & 0377) : -1) | 32 | #define WEXITSTATUS(w) (int)(WIFEXITED(w) ? (((w) >> 8) & 0377) : -1) |
33 | #define WTERMSIG(w) (int)(WIFSIGNALED(w) ? (w & 0177) : -1) | 33 | #define WTERMSIG(w) (int)(WIFSIGNALED(w) ? ((w) & 0177) : -1) |
34 | #define WCOREFLAG 0x80 | 34 | #define WCOREFLAG 0x80 |
35 | #define WCOREDUMP(w) ((w) & WCOREFLAG) | 35 | #define WCOREDUMP(w) ((w) & WCOREFLAG) |
36 | 36 | ||
@@ -42,17 +42,17 @@ pid_t posix_wait(int *status); /* new wait() */ | |||
42 | #define wait posix_wait | 42 | #define wait posix_wait |
43 | 43 | ||
44 | /* MISC functions */ | 44 | /* MISC functions */ |
45 | int waitpid(int pid,int *stat_loc,int options); | 45 | int waitpid(int pid, int *stat_loc, int options); |
46 | pid_t setsid(void); | 46 | pid_t setsid(void); |
47 | 47 | ||
48 | /* TC */ | 48 | /* TERMCAP */ |
49 | int tcgetattr(int fd,struct termios *t); | 49 | int tcgetattr(int fd, struct termios *t); |
50 | int tcsetattr(int fd,int opt,const struct termios *t); | 50 | int tcsetattr(int fd, int opt, const struct termios *t); |
51 | int tcsetpgrp(int fd, pid_t pgrp); | 51 | int tcsetpgrp(int fd, pid_t pgrp); |
52 | speed_t cfgetospeed(const struct termios *t); | 52 | speed_t cfgetospeed(const struct termios *t); |
53 | speed_t cfgetispeed(const struct termios *t); | 53 | speed_t cfgetispeed(const struct termios *t); |
54 | int cfsetospeed(struct termios *t,int speed); | 54 | int cfsetospeed(struct termios *t, int speed); |
55 | |||
56 | 55 | ||
57 | #endif /* HAVE_NEXT */ | 56 | #endif /* HAVE_NEXT */ |
57 | |||
58 | #endif /* _NEXT_POSIX_H */ | 58 | #endif /* _NEXT_POSIX_H */ |