1 #pragma lib "/$M/lib/ape/libap.a"
15 /* output modes: ONLCR, TAB3 are an extension to POSIX! */
21 #define ONLRET 0000040
32 #define TABDLY 0014000
71 /* control characters */
103 /* optional actions for tcsetattr */
108 typedef unsigned long tcflag_t;
109 typedef unsigned long speed_t;
110 typedef unsigned char cc_t;
113 tcflag_t c_iflag; /* input modes */
114 tcflag_t c_oflag; /* output modes */
115 tcflag_t c_cflag; /* control modes */
116 tcflag_t c_lflag; /* local modes */
117 cc_t c_cc[NCCS]; /* control characters */
120 extern speed_t cfgetospeed(const struct termios *);
121 extern int cfsetospeed(struct termios *, speed_t);
122 extern speed_t cfgetispeed(const struct termios *);
123 extern int cfsetispeed(struct termios *, speed_t);
124 extern int tcgetattr(int, struct termios *);
125 extern int tcsetattr(int, int, const struct termios *);
127 extern pid_t tcgetpgrp(int);
128 extern int tcsetpgrp(int, pid_t);
130 extern int tcdrain(int);
131 extern int tcflush(int, int);
132 extern int tcflow(int, int);