-static inline void write_byte(int fd, char cc) {
- write(fd, &cc, 1);
-}
-
-static inline void write_flush(int fd) {
- tcdrain(fd);
-}
-
-static inline void read_flush(int fd) {
- tcflush(fd, TCIFLUSH);
-}
-
-static int read_byte(int fd, unsigned int timeout) {