This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dumb question


   Date: Tue, 30 Jun 1998 13:54:07 -0400
   From: Roland McGrath <roland@frob.com>

   > This is true for the select call itself, but not the associated macros
   > for defining file descriptor sets.  

   Which macros?  FD_SET and FD_CLR work.  FD_ZERO doesn't, but you can always
   use bzero/memset directly.  The fd_set type is bounded, but you can
   allocate an array with one element for every FD_SETSIZE bits.

Yes, but that's breaking the abstraction barrier.  I agree it's not a
massive lose, but nearly every program out there uses fd_set and the
bounded size.  Those programs should be changed and the authors shot
and better fdset interfaces designed.

But in any case, this is what people are talking about when they say
that select does not cope with large fds.  They really mean the
existing fd_set interface.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]