This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: [ANNOUNCEMENT] Server Test 44
On Thu, Aug 16, 2001 at 09:59:12AM -0400, Harold Hunt wrote:
> > > Maybe it's not ok in Cygwin that getdtablesize() and
> > sysconf(_SC_OPEN_MAX)
> > > return the current size of the dtable. Perhaps they should return NOFILE
> > > or OPEN_MAX as it's already noted in a comment in the sysconf() source.
> > >
> > That would be better bet. There is some fudgery that goes on in
> > osdep.h that
> > basically does this too, but I'd rather the OS routines be fixed
> > if possible
> > to remove the hacks.
>
> That is the solution that I would prefer, as well.
I just checked in a fix for that. Cygwin 1.3.3 will define OPEN_MAX as
256 in limits.h. The functions getdtablesize(), sysconf(_SC_OPEN_MAX)
and getrlimit(RLIMIT_NOFILE) will return OPEN_MAX when the current
dtable size is less than OPEN_MAX or the current dtable size otherwise.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.