6 #include "next-posix.h"
9 posix_wait(int *status)
11 #undef wait /* Use NeXT's wait() function */
15 wait_pid = wait(&statusp);
16 status = (int *) statusp.w_status;
23 posix_utime(char *filename,struct utimbuf *buf)
27 timep[0] = buf->actime;
28 timep[1] = buf->modtime;
30 #undef utime /* Use NeXT's utime() function */
31 return utime(filename,timep);
36 waitpid(int pid, int *stat_loc, int options)
43 pid = 0; /* wait4() expects pid=0 for indiscriminate wait. */
45 return wait4(pid, (union wait *)stat_loc, options, NULL);
50 return setpgrp(0, getpid());
54 tcgetattr(int fd, struct termios *t)
56 return (ioctl(fd, TIOCGETA, t));
60 tcsetattr(int fd, int opt, const struct termios *t)
62 struct termios localterm;
66 localterm.c_cflag |= CIGNORE;
69 switch (opt & ~TCSASOFT) {
71 return (ioctl(fd, TIOCSETA, t));
73 return (ioctl(fd, TIOCSETAW, t));
75 return (ioctl(fd, TIOCSETAF, t));
82 int tcsetpgrp(int fd, pid_t pgrp)
87 return (ioctl(fd, TIOCSPGRP, &s));
90 speed_t cfgetospeed(const struct termios *t)
95 speed_t cfgetispeed(const struct termios *t)
101 cfsetospeed(struct termios *t,int speed)
108 cfsetispeed(struct termios *t, int speed)
113 #endif /* HAVE_NEXT */