Home
last modified time | relevance | path

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

/Zephyr-latest/tests/subsys/modem/backends/tty/src/
Dmain.c39 static int primary_fd; variable
94 primary_fd = posix_openpt(O_RDWR | O_NOCTTY); in test_modem_backend_tty_setup()
95 __ASSERT_NO_MSG(primary_fd > -1); in test_modem_backend_tty_setup()
96 __ASSERT_NO_MSG(grantpt(primary_fd) > -1); in test_modem_backend_tty_setup()
97 __ASSERT_NO_MSG(unlockpt(primary_fd) > -1); in test_modem_backend_tty_setup()
98 __ASSERT_NO_MSG(tcgetattr(primary_fd, &tio) > -1); in test_modem_backend_tty_setup()
100 __ASSERT_NO_MSG(tcsetattr(primary_fd, TCSAFLUSH, &tio) > -1); in test_modem_backend_tty_setup()
101 secondary_name = ptsname(primary_fd); in test_modem_backend_tty_setup()
156 ret = write(primary_fd, msg, sizeof(msg)); in ZTEST()
170 ret = write(primary_fd, msg, sizeof(msg)); in ZTEST()
[all …]