Home
last modified time | relevance | path

Searched refs:slavefd (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/pty/
Dptem01.c57 int masterfd, slavefd; in test1() local
77 if ((slavefd = open(slavename, O_RDWR)) < 0) { in test1()
81 if (ioctl(slavefd, TCGETS, &termios) != 0) { in test1()
85 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1()
89 if (ioctl(slavefd, TCSETSW, &termios) != 0) { in test1()
93 if (ioctl(slavefd, TCSETSF, &termios) != 0) { in test1()
97 if (ioctl(slavefd, TCSETS, &termios) != 0) { in test1()
101 if (ioctl(slavefd, TCGETA, &termio) != 0) { in test1()
105 if (ioctl(slavefd, TCSETA, &termio) != 0) { in test1()
109 if (ioctl(slavefd, TCSETAW, &termio) != 0) { in test1()
[all …]
Dpty01.c77 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()
[all …]
Dhangup01.c161 int slavefd; in child() local
168 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
172 if (write(slavefd, MESSAGE1, strlen(MESSAGE1)) != strlen(MESSAGE1)) { in child()
176 if (close(slavefd) != 0) { in child()
180 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
184 if (write(slavefd, MESSAGE2, strlen(MESSAGE2)) != strlen(MESSAGE2)) { in child()
188 if (close(slavefd) != 0) { in child()
192 if ((slavefd = open(slavename, O_RDWR)) < 0) { in child()
196 if (write(slavefd, MESSAGE3, strlen(MESSAGE3)) != strlen(MESSAGE3)) { in child()
200 if (close(slavefd) != 0) { in child()