This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

speed patch.


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]