Searched refs:slavefd (Results 1 – 3 of 3) sorted by relevance
/external/ltp/testcases/kernel/pty/ |
D | ptem01.c | 56 int masterfd, slavefd; in test1() local 79 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test1() 83 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test1() 87 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1() 91 if (ioctl(slavefd, TCSETSW, &termios) != 0) { in test1() 95 if (ioctl(slavefd, TCSETSF, &termios) != 0) { in test1() 99 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1() 103 if (ioctl(slavefd, TCGETA, &termio) != 0) { in test1() 107 if (ioctl(slavefd, TCSETA, &termio) != 0) { in test1() 111 if (ioctl(slavefd, TCSETAW, &termio) != 0) { in test1() [all …]
|
D | pty01.c | 76 int slavefd; /* slave pty fd */ in test1() local 106 slavefd = open(slavename, O_RDWR); in test1() 107 if (slavefd >= 0) { in test1() 115 slavefd = open(slavename, O_RDWR); in test1() 116 if (slavefd < 0) { in test1() 131 if (read(slavefd, buf, strlen(STRING)) != strlen(STRING)) { in test1() 144 if (write(slavefd, STRING, strlen(STRING)) != strlen(STRING)) { in test1() 162 if (ioctl(slavefd, TIOCGWINSZ, NULL) == 0) { in test1() 180 if (close(slavefd) != 0) { in test1() 197 int slavefd; /* slave pty fd */ in test2() local [all …]
|
D | hangup01.c | 160 int slavefd; in child() local 167 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child() 171 if (write(slavefd, MESSAGE1, strlen(MESSAGE1)) != strlen(MESSAGE1)) { in child() 175 if (close(slavefd) != 0) { in child() 179 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child() 183 if (write(slavefd, MESSAGE2, strlen(MESSAGE2)) != strlen(MESSAGE2)) { in child() 187 if (close(slavefd) != 0) { in child() 191 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child() 195 if (write(slavefd, MESSAGE3, strlen(MESSAGE3)) != strlen(MESSAGE3)) { in child() 199 if (close(slavefd) != 0) { in child()
|