Home
last modified time | relevance | path

Searched refs:vt_num (Results 1 – 2 of 2) sorted by relevance

/external/toybox/toys/pending/
Dopenvt.c39 unsigned long vt_num; in GLOBALS() argument
69 ret = ioctl(fd, VT_OPENQRY, (int *)&TT.vt_num); in xvtnum()
70 if (ret != 0 || TT.vt_num <= 0) perror_exit("can't find open VT"); in xvtnum()
72 return TT.vt_num; in xvtnum()
97 sprintf(toybuf, "/dev/tty%lu", TT.vt_num); in openvt_main()
104 ioctl(vt_fd, VT_ACTIVATE, TT.vt_num); in openvt_main()
105 ioctl(vt_fd, VT_WAITACTIVE, TT.vt_num); in openvt_main()
129 xioctl(fd, VT_DISALLOCATE, (void *)(ptrdiff_t)TT.vt_num); in openvt_main()
136 long vt_num = 0; // 0 deallocates all unused consoles in deallocvt_main() local
139 if (*toys.optargs) vt_num = atolx_range(*toys.optargs, 1, 63); in deallocvt_main()
[all …]
/external/toybox/generated/
Dglobals.h649 unsigned long vt_num; member