]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: sysconf, getrlimit: don't call getdtablesize
authorKen Brown <kbrown@cornell.edu>
Fri, 29 Jan 2021 14:02:15 +0000 (09:02 -0500)
committerKen Brown <kbrown@cornell.edu>
Mon, 1 Feb 2021 14:55:07 +0000 (09:55 -0500)
commitb9cbc49b70c96bed047f8c9f2e995719ca68fc01
tree183baed5ef81de1c39272dbbd8c04cbfb5ddb391
parent3d256e22e22d435d13cfecf39c15338cfbd6f587
Cygwin: sysconf, getrlimit: don't call getdtablesize

Now that getdtablesize always returns OPEN_MAX_MAX, we can simplify
sysconf(_SC_OPEN_MAX) and getrlimit(RLIMIT_NOFILE) to just use that
same constant instead of calling getdtablesize.
winsup/cygwin/resource.cc
winsup/cygwin/sysconf.cc
This page took 0.030864 seconds and 5 git commands to generate.