HomeSort by relevance Sort by last modified time
    Searched refs:slavefd (Results 1 - 3 of 3) sorted by null

  /external/ltp/testcases/kernel/pty/
ptem01.c 57 int masterfd, slavefd; local
77 if ((slavefd = open(slavename, O_RDWR)) < 0) {
81 if (ioctl(slavefd, TCGETS, &termios) != 0) {
85 if (ioctl(slavefd, TCSETS, &termios) != 0) {
89 if (ioctl(slavefd, TCSETSW, &termios) != 0) {
93 if (ioctl(slavefd, TCSETSF, &termios) != 0) {
97 if (ioctl(slavefd, TCSETS, &termios) != 0) {
101 if (ioctl(slavefd, TCGETA, &termio) != 0) {
105 if (ioctl(slavefd, TCSETA, &termio) != 0) {
109 if (ioctl(slavefd, TCSETAW, &termio) != 0)
135 int masterfd, slavefd; local
216 int masterfd, slavefd; local
264 int masterfd, slavefd, slavefd2, slavefd3; local
321 static int slavefd[NUMOPENS]; local
384 static int slavefd; local
    [all...]
pty01.c 77 int slavefd; /* slave pty fd */ local
107 slavefd = open(slavename, O_RDWR);
108 if (slavefd >= 0) {
116 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR);
129 if (read(slavefd, buf, strlen(STRING)) != strlen(STRING)) {
142 if (write(slavefd, STRING, strlen(STRING)) != strlen(STRING)) {
160 if (ioctl(slavefd, TIOCGWINSZ, NULL) == 0) {
178 if (close(slavefd) != 0) {
195 int slavefd; /* slave pty fd */ local
215 slavefd = SAFE_OPEN(NULL, slavename, O_RDWR)
272 int slavefd; \/* slave pty fd *\/ local
    [all...]
hangup01.c 161 int slavefd; local
168 if ((slavefd = open(slavename, O_RDWR)) < 0) {
172 if (write(slavefd, MESSAGE1, strlen(MESSAGE1)) != strlen(MESSAGE1)) {
176 if (close(slavefd) != 0) {
180 if ((slavefd = open(slavename, O_RDWR)) < 0) {
184 if (write(slavefd, MESSAGE2, strlen(MESSAGE2)) != strlen(MESSAGE2)) {
188 if (close(slavefd) != 0) {
192 if ((slavefd = open(slavename, O_RDWR)) < 0) {
196 if (write(slavefd, MESSAGE3, strlen(MESSAGE3)) != strlen(MESSAGE3)) {
200 if (close(slavefd) != 0)
    [all...]

Completed in 324 milliseconds