os-posix: Expand setrlimit() syscall compatibility
authorTrent Huber <trentmhuber@gmail.com>
Fri, 14 Jun 2024 21:06:38 +0000 (17:06 -0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 30 Jun 2024 16:51:44 +0000 (19:51 +0300)
commitde448e0f26e710e9d2b7fc91393c40ac24b75847
treef6fc5e276e7a0d246614eb9eee79b8466bda377f
parent737308fe2be4cf653c3fe9e1358b6a08f673a5d1
os-posix: Expand setrlimit() syscall compatibility

Darwin uses a subtly different version of the setrlimit() syscall as
described in the COMPATIBILITY section of the macOS man page. The value
of the rlim_cur member has been adjusted accordingly for Darwin-based
systems.

Signed-off-by: Trent Huber <trentmhuber@gmail.com>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
os-posix.c