[xorg-commit-diffs]
xc/programs/Xserver/hw/xfree86/os-support/linux lnx_io.c,
1.1.4.3, 1.1.4.4 lnx_kbd.c, 1.1.4.2, 1.1.4.3
Egbert Eich
xorg-commit at pdx.freedesktop.org
Thu Apr 15 03:17:15 PDT 2004
Committed by: eich
Update of /cvs/xorg/xc/programs/Xserver/hw/xfree86/os-support/linux
In directory pdx:/home/eich/tstbuild/xc/programs/Xserver/hw/xfree86/os-support/linux
Modified Files:
Tag: XORG-CURRENT
lnx_io.c lnx_kbd.c
Log Message:
2004-04-15 Egbert Eich <eich at freedesktop.org>
Merged changes from RELEASE-1 branch
Index: lnx_io.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_io.c,v
retrieving revision 1.1.4.3
retrieving revision 1.1.4.4
diff -u -d -r1.1.4.3 -r1.1.4.4
--- a/lnx_io.c 5 Mar 2004 13:40:53 -0000 1.1.4.3
+++ b/lnx_io.c 15 Apr 2004 10:17:10 -0000 1.1.4.4
@@ -90,10 +90,9 @@
/* don't change, just test */
kbdrep_s.rate = -1;
kbdrep_s.delay = -1;
- if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
+ if (ioctl( xf86Info.consoleFd, KDKBDREP, &kbdrep_s )) {
return 0;
}
-
/* do the change */
if (rate == 0) /* switch repeat off */
kbdrep_s.rate = 0;
@@ -105,7 +104,7 @@
if (kbdrep_s.delay < 1)
kbdrep_s.delay = 1;
- if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
+ if (ioctl( xf86Info.consoleFd, KDKBDREP, &kbdrep_s )) {
return 0;
}
@@ -130,8 +129,9 @@
if (kbdrate_s.rate > 50)
kbdrate_s.rate = 50;
- if (ioctl( fd, KIOCSRATE, &kbdrate_s ))
- return 0;
+ if (ioctl( fd, KIOCSRATE, &kbdrate_s )) {
+ return 0;
+ }
close( fd );
@@ -173,7 +173,6 @@
if (xf86Info.kbdDelay >= 0)
delay = xf86Info.kbdDelay;
-
if(KDKBDREP_ioctl_ok(rate, delay)) /* m68k? */
return;
Index: lnx_kbd.c
===================================================================
RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -u -d -r1.1.4.2 -r1.1.4.3
--- a/lnx_kbd.c 5 Mar 2004 13:40:53 -0000 1.1.4.2
+++ b/lnx_kbd.c 15 Apr 2004 10:17:10 -0000 1.1.4.3
@@ -117,7 +117,7 @@
/* don't change, just test */
kbdrep_s.rate = -1;
kbdrep_s.delay = -1;
- if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
+ if (ioctl( xf86Info.consoleFd, KDKBDREP, &kbdrep_s )) {
return 0;
}
@@ -132,8 +132,8 @@
if (kbdrep_s.delay < 1)
kbdrep_s.delay = 1;
- if (ioctl( 0, KDKBDREP, &kbdrep_s )) {
- return 0;
+ if (ioctl( xf86Info.consoleFd, KDKBDREP, &kbdrep_s )) {
+ return 0;
}
return 1; /* success! */
@@ -157,8 +157,9 @@
if (kbdrate_s.rate > 50)
kbdrate_s.rate = 50;
- if (ioctl( fd, KIOCSRATE, &kbdrate_s ))
- return 0;
+ if (ioctl( fd, KIOCSRATE, &kbdrate_s )) {
+ return 0;
+ }
close( fd );
More information about the xorg-commit-diffs
mailing list