[PATCH v2] os-posix: Expand setrlimit() syscall compatibility

2024-06-14 Thread Trent Huber
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 --- The previous version assumed OPEN_MAX was a

Re: [PATCH] os-posix: Expand setrlimit() syscall compatibility

2024-06-14 Thread Trent Huber
> On Jun 14, 2024, at 9:30 AM, Daniel P. Berrangé wrote: > > On Fri, Jun 14, 2024 at 01:14:22AM -0400, Trent Huber wrote: >> Darwin (I'm running version 19.6.0) uses a subtly different version >> of the setrlimit() syscall as described in the COMPATIBILITY section &

[PATCH] os-posix: Expand setrlimit() syscall compatibility

2024-06-14 Thread Trent Huber
Darwin (I'm running version 19.6.0) uses a subtly different version of the setrlimit() syscall as described in the COMPATIBILITY section of the macOS man page. I adjusted the way the rlim_cur member is set to accommodate and which shouldn't affect any non-Darwin systems. Signed-off