Lines Matching refs:slavefd
77 int slavefd; /* slave pty fd */ in test1() local
107 slavefd = open(slavename, O_RDWR); in test1()
108 if (slavefd >= 0) { in test1()
116 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test1()
129 if (read(slavefd, buf, strlen(STRING)) != strlen(STRING)) { in test1()
142 if (write(slavefd, STRING, strlen(STRING)) != strlen(STRING)) { in test1()
160 if (ioctl(slavefd, TIOCGWINSZ, NULL) == 0) { in test1()
178 if (close(slavefd) != 0) { in test1()
195 int slavefd; /* slave pty fd */ in test2() local
215 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test2()
226 if ((i = read(slavefd, &c, 1)) == 1) { in test2()
232 if ((i = write(slavefd, &c, 1)) == 1) { in test2()
237 if (ioctl(slavefd, TIOCGWINSZ, NULL) == 0) { in test2()
243 if (close(slavefd) != 0) { in test2()
272 int slavefd; /* slave pty fd */ in test4() local
292 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR); in test4()
295 if (slavefd < 0) { in test4()
301 if (slavefd < 0) { in test4()
309 if (close(slavefd) != 0) { in test4()