LibC: Add ru_maxrss to struct rusage

This is not required by posix but some ports use it
This commit is contained in:
Bananymous 2025-11-11 16:39:15 +02:00
parent 6f8d850726
commit 6facd54a7e
1 changed files with 5 additions and 4 deletions

View File

@ -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