8 int ser_open(const char *port, int baud, unsigned int mode);
9 void ser_close(int fd);
11 int ser_block(int fd);
12 int ser_nonblock(int fd);
14 int ser_pending(int fd);
15 /* if msec < 0: wait for ever */
16 int ser_wait(int fd, long msec);
18 int ser_write(int fd, const char *buf, int count);
19 int ser_read(int fd, char *buf, int count);
21 void ser_printf(int fd, const char *fmt, ...);
22 char *ser_getline(int fd, char *buf, int bsz);
24 #endif /* SERIAL_H_ */