summaryrefslogtreecommitdiff
path: root/next-posix.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-09-24 11:10:13 +1100
committerDamien Miller <djm@mindrot.org>2000-09-24 11:10:13 +1100
commit72c9a7e958689740cb3449df5732e0956d52ef5b (patch)
tree70f861946c4e7750bd04cdd57fd7952da1c889fe /next-posix.h
parent62cee00753ef8ce31b322ce6a14318cb974e883d (diff)
- (djm) Merged cleanup patch from Mark Miller <markm@swoon.net>
- (djm) A bit more cleanup - created cygwin_util.h
Diffstat (limited to 'next-posix.h')
-rw-r--r--next-posix.h20
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 */
16struct utimbuf { 16struct 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 */
45int waitpid(int pid,int *stat_loc,int options); 45int waitpid(int pid, int *stat_loc, int options);
46pid_t setsid(void); 46pid_t setsid(void);
47 47
48/* TC */ 48/* TERMCAP */
49int tcgetattr(int fd,struct termios *t); 49int tcgetattr(int fd, struct termios *t);
50int tcsetattr(int fd,int opt,const struct termios *t); 50int tcsetattr(int fd, int opt, const struct termios *t);
51int tcsetpgrp(int fd, pid_t pgrp); 51int tcsetpgrp(int fd, pid_t pgrp);
52speed_t cfgetospeed(const struct termios *t); 52speed_t cfgetospeed(const struct termios *t);
53speed_t cfgetispeed(const struct termios *t); 53speed_t cfgetispeed(const struct termios *t);
54int cfsetospeed(struct termios *t,int speed); 54int 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 */