From 6facd54a7e496b132a1df9ed0fc7e806dbe69458 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 11 Nov 2025 16:39:15 +0200 Subject: [PATCH] LibC: Add ru_maxrss to struct rusage This is not required by posix but some ports use it --- userspace/libraries/LibC/include/sys/resource.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/userspace/libraries/LibC/include/sys/resource.h b/userspace/libraries/LibC/include/sys/resource.h index 7ee3103b..5aaa427e 100644 --- a/userspace/libraries/LibC/include/sys/resource.h +++ b/userspace/libraries/LibC/include/sys/resource.h @@ -28,14 +28,15 @@ typedef unsigned int rlim_t; struct rlimit { - rlim_t rlim_cur; /* The current (soft) limit. */ - rlim_t rlim_max; /* The hard limit. */ + rlim_t rlim_cur; /* The current (soft) limit. */ + rlim_t rlim_max; /* The hard limit. */ }; struct rusage { - struct timeval ru_utime; /* User time used. */ - struct timeval ru_stime; /* System time used. */ + struct timeval ru_utime; /* User time used. */ + struct timeval ru_stime; /* System time used. */ + long ru_maxrss; /* Maximum resident set size (in kilobytes). */ }; #define RLIMIT_CORE 0