Lines Matching defs:openvt
22 int openvt;
78 openvt=open(openvtname, O_RDWR);
79 if(openvt<0) {
85 chowned=fchown(openvt, uid, gid);
94 if(ioctl(openvt, VT_ACTIVATE, openvtnum)<0) {
100 while(ioctl(openvt, VT_WAITACTIVE, openvtnum)<0) {
102 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
110 fp=fdopen(openvt, "r+");
113 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
119 if(tcgetattr(openvt, &t)<0) {
121 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
127 if(tcsetattr(openvt, TCSANOW, &t)<0) {
129 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
137 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
145 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
154 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
161 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
169 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
178 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
192 ioctl(openvt, VT_ACTIVATE, origstate.v_active);
202 ioctl(openvt, VT_ACTIVATE, origstate.v_active);