From owner-cvs-lib Sat Aug 2 14:42:19 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA15897 for cvs-lib-outgoing; Sat, 2 Aug 1997 14:42:19 -0700 (PDT) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA15892; Sat, 2 Aug 1997 14:42:13 -0700 (PDT) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.5/8.8.5) with UUCP id PAA22324; Sat, 2 Aug 1997 15:42:12 -0600 (MDT) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id PAA13834; Sat, 2 Aug 1997 15:42:25 -0600 (MDT) Date: Sat, 2 Aug 1997 15:42:24 -0600 (MDT) From: Marc Slemko To: Peter Wemm cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libc/net res_send.c In-Reply-To: <199706280419.VAA16441@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Anyone want to import this into the 2.2 branch? Since the hard-coded FD_SETSIZE check was added in rev. 1.14, using things like Apache with more than 256 fds means that you have to recompile your libc with a higher FD_SETSIZE. Would be nice to have this fix in 2.2... On Fri, 27 Jun 1997, Peter Wemm wrote: > peter 1997/06/27 21:19:53 PDT > > Modified files: > lib/libc/net res_send.c > Log: > replace the OpenBSD fd_set sizing code with something more efficient. > Only call malloc() if the fd is too big for the compiled in fd_set size, > and don't use calloc either. This should reduce the impact of conflicts > with private malloc implementations etc. When using the fd_set on the > stack, only zero what is needed rather than all 1024 bits like FD_ZERO did. > > Revision Changes Path > 1.18 +16 -9 src/lib/libc/net/res_send.c >