blob: 9bee282e4e7787a1c2bd6568c9b224ac6b34f091 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef _util_h_
#define _util_h_
/* util.c */
extern void set_nonblocking (int fd);
extern void set_blocking (int fd);
extern int fd_can_read (int fd);
extern int fd_drain (int fd);
extern int open_tty (const char *path, int baud);
extern int open_tcp_client (const char *host, unsigned port);
extern int open_tcp_server (unsigned port);
#endif /* _util_h_ */
|