Lines Matching refs:fd
16 int fd = (int)arg;
19 res = ioctl(fd, VT_ACTIVATE, (void*)activate_thread_switch_vc);
34 int fd;
104 fd = open(ttydev, O_RDWR | O_SYNC);
105 if (fd < 0) {
113 res = ioctl(fd, VT_GETSTATE, &vs);
122 res = ioctl(fd, VT_OPENQRY, &vtnum);
134 pthread_create(&thread, &attr, activate_thread, (void*)fd);
137 res = ioctl(fd, VT_WAITACTIVE, (void*)switch_vc);
146 close(fd);
147 fd = open(ttydev, O_RDWR | O_SYNC);
148 if (fd < 0) {
154 res = ioctl(fd, VT_DISALLOCATE, 0);
160 if (ioctl(fd, KDSETMODE, (void*)mode) < 0) {