Re: repost: dynamic fd array patch for 2.1.103

Dean Gaudet (dgaudet-list-linux-kernel@arctic.org)
Tue, 2 Jun 1998 18:40:39 -0700 (PDT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--------------337FD1A0EE568B2E614751C8
Content-Type: TEXT/PLAIN; CHARSET=us-ascii
Content-ID: <Pine.LNX.3.96dg4.980602182451.1565N@twinlark.arctic.org>

On Tue, 2 Jun 1998, Bill Hawes wrote:

> The patch was primarily intended to save memory and reduce forking
> overhead, but some people have expressed an interest in using it to
> extend the fd limit beyond the hard-wired 1024 (NR_OPEN) limit. It
> should work as well for that, assuming that the other problems with
> increasing NR_OPEN have been taken care of (libc issues, etc.)

glibc-2.0.7 uses fd_set (and therefore must be recompiled with a larger
NR_OPEN) in the following files:

./inet/rcmd.c
./manual/examples/inetsrv.c
./manual/examples/select.c
./misc/sys/select.h
./posix/sys/types.h
./resolv/res_send.c
./sunrpc/rpc/svc.h
./sunrpc/clnt_tcp.c
./sunrpc/clnt_udp.c
./sunrpc/pmap_rmt.c
./sunrpc/rpc_common.c
./sunrpc/rpc_svcout.c
./sunrpc/svc.c
./sunrpc/svc_run.c
./sunrpc/svc_tcp.c
./sysdeps/generic/gnu/types.h
./sysdeps/generic/pselect.c
./sysdeps/generic/selectbits.h
./sysdeps/i386/selectbits.h
./sysdeps/mach/hurd/select.c
./sysdeps/stub/select.c
./sysdeps/unix/bsd/poll.c
./sysdeps/unix/bsd/tcsendbrk.c
./sysdeps/unix/bsd/usleep.c
./sysdeps/unix/sysv/linux/alpha/gnu/types.h
./sysdeps/unix/sysv/linux/gnu/types.h

most of those aren't anything to worry about. But resolv/res_send.c
is something to worry about -- any DNS lookups will fail if the fd is
>= the NR_OPEN value when the library was compiled.

Expect to find problems like this in other libraries.

Dean

--------------337FD1A0EE568B2E614751C8--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu