Lines Matching refs:ioctl
47 # include <sys/ioctl.h>
81 # define tcgetattr(f, t) ioctl(f, TCGETA, t)
82 # define tcsetattr(f, a, t) ioctl(f, a, t)
91 # define tcgetattr(f, t) ioctl(f, TIOCGETP, t)
92 # define tcsetattr(f, a, t) ioctl(f, a, t)
222 if (!changed && ioctl(fd, TIOCGETP, &oterm) != 0)
229 if (ioctl(fd, TIOCSETP, &term) == 0) {
240 if (!changed && ioctl(fd, TIOCGETP, &oterm) != 0)
246 if (ioctl(fd, TIOCSETP, &term) == 0) {
265 if (ioctl(src, TIOCGETP, &b) != 0 || ioctl(src, TIOCGETC, &tc) != 0 ||
266 ioctl(src, TIOCGETD, &l) != 0 || ioctl(src, TIOCGLTC, &lc) != 0 ||
267 ioctl(src, TIOCLGET, &lb)) {
270 if (ioctl(dst, TIOCSETP, &b) != 0 || ioctl(dst, TIOCSETC, &tc) != 0 ||
271 ioctl(dst, TIOCSLTC, &lc) != 0 || ioctl(dst, TIOCLSET, &lb) != 0 ||
272 ioctl(dst, TIOCSETD, &l) != 0) {