Lines Matching +full:slave +full:- +full:dev
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()
89 error = sendsome(slave, master); in exercise_ptytty()
108 int master, slave, error, v; in ATF_TC_BODY() local
111 slave = rump_sys_open("/dev/ttyp1", O_RDWR|O_NONBLOCK); in ATF_TC_BODY()
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()
118 rump_sys_ioctl(slave, FIOASYNC, &v); in ATF_TC_BODY()
119 error = exercise_ptytty(master, slave); in ATF_TC_BODY()
123 rump_sys_close(slave); in ATF_TC_BODY()
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()
142 slave = rump_sys_open("/dev/ttyp1", O_RDWR); in ATF_TC_BODY()
143 ATF_CHECK(slave != -1); in ATF_TC_BODY()
145 error = exercise_ptytty(master, slave); in ATF_TC_BODY()
149 rump_sys_close(slave); in ATF_TC_BODY()
166 fd = rump_sys_open("/dev/ptyp1", O_RDWR); in ATF_TC_BODY()
167 ATF_CHECK(fd != -1); in ATF_TC_BODY()
171 * atf_tc_expect_signal(-1, "PR kern/40688"); in ATF_TC_BODY()