Date: Fri, 27 Jun 1997 21:19:53 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/net res_send.c Message-ID: <199706280419.VAA16441@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706280419.VAA16441>