aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2020-11-03 00:36:28 +0100
committerJakub Konka <kubkon@jakubkonka.com>2020-11-03 00:38:43 +0100
commit8dda64fa3e1d3249baa948dc0558e3f65d71e6df (patch)
treebeceee28f51886280f8ede8caffb1475ad5e3edf /lib/std/math.zig
parent06b4526a3e15d776437cdcf45d76ed34c6c39272 (diff)
downloadzig-8dda64fa3e1d3249baa948dc0558e3f65d71e6df.tar.gz
zig-8dda64fa3e1d3249baa948dc0558e3f65d71e6df.zip
Fix Darwin codepath
On Darwin, according to the man pages for setrlimit(), when adjusting max number of open fds, the reported hard max by getrlimit() is only theoretical, while the actual maximum, set in the kernel, is hardcoded in the header file. Therefore, the reported max has to be adjusted as `min(OPEN_MAX, lim.max)`. Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
Diffstat (limited to 'lib/std/math.zig')
0 files changed, 0 insertions, 0 deletions