[patch] 2.4.0-test5-pre2, linux/arch/alpha/kernel/osf_sys.c

From: Andrew van der Stock (ajv@greebo.net)
Date: Tue Jul 18 2000 - 21:03:24 EST


Allows alpha generic kernels to compile. Has a comment this time :-) Thanks
to Ivan for his patch.

diff -u linux/arch/alpha/kernel/osf_sys.c.orig
linux/arch/alpha/kernel/osf_sys.c
--- linux/arch/alpha/kernel/osf_sys.orig Wed Jul 19 11:55:03 2000
+++ linux/arch/alpha/kernel/osf_sys.c Wed Jul 19 11:59:18 2000
@@ -1076,7 +1076,13 @@
        }

        ret = -EINVAL;
- if (n < 0 || n > KFDS_NR)
+
+ /* OSF select(2) supports up to 64K open file descriptors per
+ * process.
+ * patch care of Ivan Kokshaysky <ink@jurassic.park.msu.ru>
+ */
+
+ if (n < 0 || n >= 64*1024)
                goto out_nofds;

thanks,

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

-
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 : Sun Jul 23 2000 - 21:00:12 EST