Home
last modified time | relevance | path

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

/Zephyr-Core-2.7.6/drivers/serial/
Duart_native_posix.c112 int master_pty; in open_tty() local
123 master_pty = posix_openpt(O_RDWR | O_NOCTTY); in open_tty()
124 if (master_pty == -1) { in open_tty()
127 ret = grantpt(master_pty); in open_tty()
130 close(master_pty); in open_tty()
134 ret = unlockpt(master_pty); in open_tty()
137 close(master_pty); in open_tty()
140 slave_pty_name = ptsname(master_pty); in open_tty()
143 close(master_pty); in open_tty()
147 flags = fcntl(master_pty, F_GETFL); in open_tty()
[all …]