Lines Matching refs:slavefd
74 int slavefd; /* slave pty fd */
104 slavefd = open(slavename, O_RDWR);
105 if (slavefd >= 0) {
113 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR);
126 if (read(slavefd, buf, strlen(STRING)) != strlen(STRING)) {
139 if (write(slavefd, STRING, strlen(STRING)) != strlen(STRING)) {
157 if (ioctl(slavefd, TIOCGWINSZ, NULL) == 0) {
175 if (close(slavefd) != 0) {
192 int slavefd; /* slave pty fd */
212 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR);
223 if ((i = read(slavefd, &c, 1)) == 1) {
229 if ((i = write(slavefd, &c, 1)) == 1) {
234 if (ioctl(slavefd, TIOCGWINSZ, NULL) == 0) {
240 if (close(slavefd) != 0) {
269 int slavefd; /* slave pty fd */
289 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR);
292 if (slavefd < 0) {
298 if (slavefd < 0) {
306 if (close(slavefd) != 0) {