Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/serial/
Duart_native_ptty_bottom.c138 int master_pty; in np_uart_open_ptty() local
145 master_pty = posix_openpt(O_RDWR | O_NOCTTY); in np_uart_open_ptty()
146 if (master_pty == -1) { in np_uart_open_ptty()
149 ret = grantpt(master_pty); in np_uart_open_ptty()
152 close(master_pty); in np_uart_open_ptty()
156 ret = unlockpt(master_pty); in np_uart_open_ptty()
159 close(master_pty); in np_uart_open_ptty()
162 slave_pty_name = ptsname(master_pty); in np_uart_open_ptty()
165 close(master_pty); in np_uart_open_ptty()
169 flags = fcntl(master_pty, F_GETFL); in np_uart_open_ptty()
[all …]