patch-2.3.12 linux/fs/select.c
Next file: linux/include/asm-alpha/resource.h
Previous file: linux/fs/proc/link.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Wed Jul 28 13:52:38 1999
- Orig file:
v2.3.11/linux/fs/select.c
- Orig date:
Thu Jul 8 15:42:21 1999
diff -u --recursive --new-file v2.3.11/linux/fs/select.c linux/fs/select.c
@@ -106,7 +106,7 @@
/* handle last in-complete long-word first */
set = ~(~0UL << (n & (__NFDBITS-1)));
n /= __NFDBITS;
- open_fds = current->files->open_fds.fds_bits+n;
+ open_fds = current->files->open_fds->fds_bits+n;
max = 0;
if (set) {
set &= BITS(fds, n);
@@ -268,8 +268,8 @@
if (n < 0)
goto out_nofds;
- if (n > KFDS_NR)
- n = KFDS_NR;
+ if (n > current->files->max_fdset)
+ n = current->files->max_fdset;
/*
* We need 6 bitmaps (in/out/ex for both incoming and outgoing),
@@ -380,7 +380,7 @@
lock_kernel();
/* Do a sanity check on nfds ... */
err = -EINVAL;
- if (nfds > NR_OPEN)
+ if (nfds > current->files->max_fds)
goto out;
if (timeout) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)