Home | History | Annotate | Download | only in pty

Lines Matching refs:slavefd

57 	int masterfd, slavefd;
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) {
113 if (ioctl(slavefd, TCSETAF, &termio) != 0) {
117 if (close(slavefd) != 0) {
135 int masterfd, slavefd;
156 if ((slavefd = open(slavename, O_RDWR)) < 0) {
164 if (ioctl(slavefd, TIOCGWINSZ, &wsz) != 0) {
184 if (ioctl(slavefd, TIOCSWINSZ, &wsz2) != 0) {
188 if (ioctl(slavefd, TIOCGWINSZ, &wsz) != 0) {
198 if (close(slavefd) != 0) {
216 int masterfd, slavefd;
234 if ((slavefd = open(slavename, O_RDWR)) < 0) {
242 if (tcsendbreak(slavefd, 10) != 0) {
246 if (close(slavefd) != 0) {
264 int masterfd, slavefd, slavefd2, slavefd3;
282 if ((slavefd = open(slavename, O_RDWR)) < 0) {
295 if (close(slavefd) != 0) {
321 static int slavefd[NUMOPENS];
334 if (slavefd[i] != 0) {
335 (void)close(slavefd[i]);
356 if ((slavefd[i] = open(slavename, O_RDWR)) < 0) {
365 if (close(slavefd[i]) != 0) {
384 static int slavefd;
403 if ((slavefd = open(slavename, O_RDWR)) < 0) {
407 if (ioctl(slavefd, TCGETS, &termios) != 0) {
413 if (ioctl(slavefd, TCSETS, &termios) != 0) {
417 if (close(slavefd) != 0) {