Expand description
Try to increase NOFILE limit and return the current soft limit.
lim
is the expected limit which can be up to u64::MAX
.
This function does nothing and returns Ok(lim)
if RLIMIT_NOFILE
does not exist on current platform.
Returns an error if any syscall failed.