mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Version number support for XFree86
This commit is contained in:
parent
5487793b4b
commit
b5275b8103
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=514
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user