ntdll: Try to raise the file limit above OPEN_MAX on MacOS.
commitde7604b6c68e2e69c1f56d20e34d13639c7a4ea1
authorStefan Dösinger <stefan@codeweavers.com>
Thu, 3 Aug 2023 10:54:50 +0000 (3 13:54 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 14 Aug 2023 16:11:23 +0000 (14 18:11 +0200)
tree7efcd52a1bfaa733015061b9930b90be65c4d9b3
parent57943168c468723ce8752f8a1717243b1c3deceb
ntdll: Try to raise the file limit above OPEN_MAX on MacOS.

OPEN_MAX is 10240, which is usually lower than the kern.maxfilesperproc sysctl
value. Said value from sysctl works on Mojave to Monterey (and most likely
earlier Mac OS versions, but I can't test). Since Big Sur we can successfully
set the reported rlim_max value.
dlls/ntdll/unix/loader.c