Version number support for XFree86

This commit is contained in:
Jordan K. Hubbard 1993-09-28 20:53:48 +00:00
parent 5487793b4b
commit b5275b8103
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=514
3 changed files with 15 additions and 3 deletions

View File

@ -39,7 +39,7 @@
*
* virtual consoles, SYSV ioctl's, ANSI emulation
*
* @(#)syscons.c 0.2e 930924
* @(#)syscons.c 1.0 930928
* Derived from:
* @(#)pccons.c 5.11 (Berkeley) 5/21/91
*/
@ -540,6 +540,10 @@ pcioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
change_winsize(tp, scp->max_posx, scp->max_posy);
return 0;
case CONS_GETVERS: /* get version number */
*(int*)data = 0x100; /* version 1.0 */
return 0;
case CONS_GETINFO: /* get current (virtual) console info */
if (*data == sizeof(struct vid_info)) {
vid_info_t *ptr = (vid_info_t*)data;

View File

@ -39,7 +39,7 @@
*
* virtual consoles, SYSV ioctl's, ANSI emulation
*
* @(#)syscons.c 0.2e 930924
* @(#)syscons.c 1.0 930928
* Derived from:
* @(#)pccons.c 5.11 (Berkeley) 5/21/91
*/
@ -540,6 +540,10 @@ pcioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
change_winsize(tp, scp->max_posx, scp->max_posy);
return 0;
case CONS_GETVERS: /* get version number */
*(int*)data = 0x100; /* version 1.0 */
return 0;
case CONS_GETINFO: /* get current (virtual) console info */
if (*data == sizeof(struct vid_info)) {
vid_info_t *ptr = (vid_info_t*)data;

View File

@ -39,7 +39,7 @@
*
* virtual consoles, SYSV ioctl's, ANSI emulation
*
* @(#)syscons.c 0.2e 930924
* @(#)syscons.c 1.0 930928
* Derived from:
* @(#)pccons.c 5.11 (Berkeley) 5/21/91
*/
@ -540,6 +540,10 @@ pcioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p)
change_winsize(tp, scp->max_posx, scp->max_posy);
return 0;
case CONS_GETVERS: /* get version number */
*(int*)data = 0x100; /* version 1.0 */
return 0;
case CONS_GETINFO: /* get current (virtual) console info */
if (*data == sizeof(struct vid_info)) {
vid_info_t *ptr = (vid_info_t*)data;