Lines Matching +full:master +full:- +full:side
3 /*-
36 #include <atf-c.h>
72 exercise_ptytty(int master, int slave) in exercise_ptytty() argument
77 * send a few bytes from master to slave and read them back in exercise_ptytty()
79 error = sendsome(master, slave); in exercise_ptytty()
84 rump_sys_ioctl(master, TIOCFLUSH, &flags); in exercise_ptytty()
89 error = sendsome(slave, master); in exercise_ptytty()
94 rump_sys_ioctl(master, TIOCFLUSH, &flags); in exercise_ptytty()
103 "test basic tty/pty operation when opening client side first"); in ATF_TC_HEAD()
108 int master, slave, error, v; in ATF_TC_BODY() local
112 ATF_CHECK(slave != -1); in ATF_TC_BODY()
114 master = rump_sys_open("/dev/ptyp1", O_RDWR); in ATF_TC_BODY()
115 ATF_CHECK(master != -1); in ATF_TC_BODY()
119 error = exercise_ptytty(master, slave); in ATF_TC_BODY()
122 rump_sys_close(master); in ATF_TC_BODY()
131 "test basic tty/pty operation when opening master side first"); in ATF_TC_HEAD()
136 int master, slave, error; in ATF_TC_BODY() local
139 master = rump_sys_open("/dev/ptyp1", O_RDWR); in ATF_TC_BODY()
140 ATF_CHECK(master != -1); in ATF_TC_BODY()
143 ATF_CHECK(slave != -1); in ATF_TC_BODY()
145 error = exercise_ptytty(master, slave); in ATF_TC_BODY()
148 rump_sys_close(master); in ATF_TC_BODY()
157 "ioctl on pty with client side not open"); in ATF_TC_HEAD()
167 ATF_CHECK(fd != -1); in ATF_TC_BODY()
171 * atf_tc_expect_signal(-1, "PR kern/40688"); in ATF_TC_BODY()