Home
last modified time | relevance | path

Searched refs:fd_master (Results 1 – 1 of 1) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/termios/
Dtcdrain.c35 int fd_master, fd_slave, result; in tcdrain_0100() local
38 fd_master = open(Master, O_RDWR | O_NONBLOCK); in tcdrain_0100()
39 if (fd_master < 0) { in tcdrain_0100()
43 result = grantpt(fd_master); in tcdrain_0100()
49 result = unlockpt(fd_master); in tcdrain_0100()
55 char *Slave = ptsname(fd_master); in tcdrain_0100()
82 if (read(fd_master, data, sizeof(data)) == -1) { in tcdrain_0100()
89 close(fd_master); in tcdrain_0100()