Lines Matching refs:ioctl
50 if (!ioctl(fd, KDGKBTYPE, &arg)) return fd;
53 for (fd = 0; fd < 3; fd++) if (!ioctl(fd, KDGKBTYPE, &arg)) return fd;
64 if (-1 == (ioctl(fd = open_console(), VT_GETSTATE, &vstate)) ||
72 ioctl(0, VT_ACTIVATE, (int)TT.c);
73 ioctl(0, VT_WAITACTIVE, (int)TT.c);
78 ioctl(0, TIOCSCTTY, 0);
86 ioctl(fd, VT_ACTIVATE, vstate.v_active);
87 ioctl(fd, VT_WAITACTIVE, vstate.v_active);
88 ioctl(fd, VT_DISALLOCATE, (int)TT.c);
99 if (-1 == ioctl(fd = open_console(), VT_DISALLOCATE, vt_num))