This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
speed patch.
- To: <libc-alpha at sources dot redhat dot com>
- Subject: speed patch.
- From: Lukasz Trabinski <lukasz at lt dot wsisiz dot edu dot pl>
- Date: Thu, 31 May 2001 18:53:19 +0200 (CEST)
Hello
There is little patch for glibc 2.2.3 to fix problems with setting speed
on fast serial cards, serial controller. This patch allow to set speed
higher than 460K.
--
*[ Łukasz Trąbiński ]*
SysAdmin @wsisiz.edu.pl
diff -ru glibc-2.2.3.org/sysdeps/unix/sysv/linux/speed.c glibc-2.2.3/sysdeps/unix/sysv/linux/speed.c
--- glibc-2.2.3.org/sysdeps/unix/sysv/linux/speed.c Tue Jan 4 17:12:05 2000
+++ glibc-2.2.3/sysdeps/unix/sysv/linux/speed.c Thu May 31 13:48:43 2001
@@ -60,7 +60,7 @@
speed_t speed;
{
if ((speed & ~CBAUD) != 0
- && (speed < B57600 || speed > B460800))
+ && (speed < B57600 ))
{
__set_errno (EINVAL);
return -1;
@@ -82,7 +82,7 @@
speed_t speed;
{
if ((speed & ~CBAUD) != 0
- && (speed < B57600 || speed > B460800))
+ && (speed < B57600 ))
{
__set_errno (EINVAL);
return -1;