Latest changs for XFree86 2.0

This commit is contained in:
jkh 1993-10-04 22:23:03 +00:00
parent 42c619162a
commit 0d7be63544
3 changed files with 12 additions and 0 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);