sys/resource.h: add rusage compatibility fields, set to zero
POSIX defines this structure but specifies only two fields (which we already implement). However, both the *BSD and Linux have agreed on some more fields, which are often assumed to be there by applications. The benefice of having compatibility fields is greater as having to patch every other software at HaikuPorts. Change-Id: Ie28ca2e348aa16b4c57eb3498eb62175100d9b9d Reviewed-on: https://review.haiku-os.org/c/haiku/+/4083 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Niels Sascha Reedijk <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -44,6 +44,22 @@ struct rlimit {
|
||||
struct rusage {
|
||||
struct timeval ru_utime; /* user time used */
|
||||
struct timeval ru_stime; /* system time used */
|
||||
|
||||
/* unused, only for compatibility with other systems */
|
||||
long ru_maxrss;
|
||||
long ru_ixrss;
|
||||
long ru_idrss;
|
||||
long ru_isrss;
|
||||
long ru_minflt;
|
||||
long ru_majflt;
|
||||
long ru_nswap;
|
||||
long ru_inblock;
|
||||
long ru_oublock;
|
||||
long ru_msgsnd;
|
||||
long ru_msgrcv;
|
||||
long ru_nsignals;
|
||||
long ru_nvcsw;
|
||||
long ru_nivcsw;
|
||||
};
|
||||
|
||||
#define RUSAGE_SELF 0
|
||||
|
||||
Reference in New Issue
Block a user