• Home
  • Raw
  • Download

Lines Matching refs:fd

85     int fd;  in threadLoop()  local
87 fd = open(kSleepFileName, O_RDONLY, 0); in threadLoop()
89 err = read(fd, &buf, 1); in threadLoop()
91 close(fd); in threadLoop()
102 fd = open(kWakeFileName, O_RDONLY, 0); in threadLoop()
104 err = read(fd, &buf, 1); in threadLoop()
106 close(fd); in threadLoop()
157 int fd = open(ttydev, O_RDWR | O_SYNC); in ConsoleManagerThread() local
158 if (fd<0) { in ConsoleManagerThread()
165 int res = ioctl(fd, KDSETMODE, (void*) KD_TEXT); in ConsoleManagerThread()
168 fd, res, strerror(errno)); in ConsoleManagerThread()
173 res = ioctl(fd, VT_GETSTATE, &vs); in ConsoleManagerThread()
176 fd, res, strerror(errno)); in ConsoleManagerThread()
184 res = ioctl(fd, VT_ACTIVATE, (void*)vtnum); in ConsoleManagerThread()
188 fd, errno, strerror(errno), vtnum); in ConsoleManagerThread()
194 res = ioctl(fd, VT_WAITACTIVE, (void*)vtnum); in ConsoleManagerThread()
198 fd, res, errno, strerror(errno), vtnum); in ConsoleManagerThread()
204 close(fd); in ConsoleManagerThread()
205 fd = open(ttydev, O_RDWR | O_SYNC); in ConsoleManagerThread()
206 if (fd<0) { in ConsoleManagerThread()
214 ioctl(fd, TCGETS , &ttyarg); in ConsoleManagerThread()
217 ioctl(fd, TCSETS , &ttyarg); in ConsoleManagerThread()
245 res = ioctl(fd, KDSETMODE, (void*)KD_GRAPHICS); in ConsoleManagerThread()
247 "ioctl(%d, KDSETMODE, KD_GRAPHICS) failed, res %d", fd, res); in ConsoleManagerThread()
251 this->consoleFd = fd; in ConsoleManagerThread()
257 int fd = this->consoleFd; in ~ConsoleManagerThread() local
260 ioctl(fd, KDSETMODE, (void*)KD_TEXT); in ~ConsoleManagerThread()
262 res = ioctl(fd, VT_ACTIVATE, (void*)prev_vt_num); in ~ConsoleManagerThread()
265 res = ioctl(fd, VT_WAITACTIVE, (void*)prev_vt_num); in ~ConsoleManagerThread()
267 close(fd); in ~ConsoleManagerThread()
269 fd = open(ttydev, O_RDWR | O_SYNC); in ~ConsoleManagerThread()
270 ioctl(fd, VT_DISALLOCATE, 0); in ~ConsoleManagerThread()
271 close(fd); in ~ConsoleManagerThread()
321 int fd = this->consoleFd; in releaseScreen() local
322 int err = ioctl(fd, VT_RELDISP, (void*)1); in releaseScreen()
324 fd, errno, strerror(errno)); in releaseScreen()