Searched refs:vt_num (Results 1 – 2 of 2) sorted by relevance
/external/toybox/toys/pending/ |
D | openvt.c | 40 unsigned long vt_num; in GLOBALS() argument 70 ret = ioctl(fd, VT_OPENQRY, (int *)&TT.vt_num); in xvtnum() 71 if (ret != 0 || TT.vt_num <= 0) perror_exit("can't find open VT"); in xvtnum() 73 return TT.vt_num; in xvtnum() 98 sprintf(toybuf, "/dev/tty%lu", TT.vt_num); in openvt_main() 105 ioctl(vt_fd, VT_ACTIVATE, TT.vt_num); in openvt_main() 106 ioctl(vt_fd, VT_WAITACTIVE, TT.vt_num); in openvt_main() 130 xioctl(fd, VT_DISALLOCATE, (void *)(ptrdiff_t)TT.vt_num); in openvt_main() 137 long vt_num = 0; // 0 deallocates all unused consoles in deallocvt_main() local 140 if (*toys.optargs) vt_num = atolx_range(*toys.optargs, 1, 63); in deallocvt_main() [all …]
|
/external/toybox/generated/ |
D | globals.h | 762 unsigned long vt_num; member
|