FW: [PATCH] 2.4.0-test5-pre1, allows alpha compilation (KFDS_NR patch again)

From: Andrew van der Stock (ajv@greebo.net)
Date: Sat Jul 15 2000 - 10:00:17 EST


Hi there,

This patch from Ivan was not rolled in. Please consider. :-)

thanks,

Andrew van der Stock, ajv@greebo.net http://www.greebo.net
SAGE-AU President http://www.sage-au.org.au

[snip]

>From Ivan Kokshaysky, ink@jurassic.park.msu.ru

OSF select(2) supports up to 64K open file descriptors per process,
so better fix should be

--- linux/arch/alpha/kernel/osf_sys.c.orig Wed Jul 12 13:26:32 2000
+++ linux/arch/alpha/kernel/osf_sys.c Fri Jul 14 00:59:27 2000
@@ -1078,7 +1078,7 @@
         }
 
         ret = -EINVAL;
- if (n < 0 || n > KFDS_NR)
+ if (n < 0 || n >= 64*1024)
                 goto out_nofds;
 
         /*

Ivan.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:22 EST