Latest changs for XFree86 2.0
This commit is contained in:
parent
42c619162a
commit
0d7be63544
@ -623,6 +623,10 @@ pcioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
|
||||
return EINVAL;
|
||||
/* NOT REACHED */
|
||||
|
||||
case VT_GETACTIVE: /* return number of active virtual console */
|
||||
*data = get_scr_num(scp) + 1;
|
||||
return 0;
|
||||
|
||||
case VT_ACTIVATE: /* switch to screen *data */
|
||||
return switch_scr((*data) - 1);
|
||||
|
||||
|
@ -623,6 +623,10 @@ pcioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
|
||||
return EINVAL;
|
||||
/* NOT REACHED */
|
||||
|
||||
case VT_GETACTIVE: /* return number of active virtual console */
|
||||
*data = get_scr_num(scp) + 1;
|
||||
return 0;
|
||||
|
||||
case VT_ACTIVATE: /* switch to screen *data */
|
||||
return switch_scr((*data) - 1);
|
||||
|
||||
|
@ -623,6 +623,10 @@ pcioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
|
||||
return EINVAL;
|
||||
/* NOT REACHED */
|
||||
|
||||
case VT_GETACTIVE: /* return number of active virtual console */
|
||||
*data = get_scr_num(scp) + 1;
|
||||
return 0;
|
||||
|
||||
case VT_ACTIVATE: /* switch to screen *data */
|
||||
return switch_scr((*data) - 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user