Date: Wed, 11 Nov 1998 12:03:08 -0700 From: Nate Williams <nate@mt.sri.com> To: Bakul Shah <bakul@torrentnet.com> Cc: Nate Williams <nate@mt.sri.com>, hackers@FreeBSD.ORG Subject: Re: Supporting more than FD_SETSIZE fd's Message-ID: <199811111903.MAA18067@mt.sri.com> In-Reply-To: <199811111859.NAA26093@chai.torrentnet.com> References: <199811111721.KAA17285@mt.sri.com> <199811111859.NAA26093@chai.torrentnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > int fd_setsize = getdtablesize(); > > > int fd_tablesize = howmany(max_fd_count, NFDBITS); > > > Where is max_fd_count defined? > > Oops! I forgot to fix the second line above when I renamed > max_fd_count to fd_setsize. > > BTW, getrlimit(RLIMIT_NOFILE, &fd_setsize) is a better choice > than getdtablesize(). > > > I tried doing this, but ended up with a core dump. Unfortunately, I ran > > out of time to work on it this week (real work calls), but I'll look > > into doing this this weekend. However, if someone has already done this > > I'm more than willing to accept example code. :) :) > > The code fragment I showed is approx. right as I've used > something similar a couple of times before but I will try to > turn it into a working example over the weekend. Thanks. If it included the MACROS so much the better. :) :) :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811111903.MAA18067>