mailing list of musl libc
 help / color / mirror / code / Atom feed
f8bd46ba086b8261a53937896d926f3029079e8c blob 564 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
#include "time32.h"
#include <string.h>
#include <sys/resource.h>

struct compat_rusage {
	struct timeval32 ru_utime;
	struct timeval32 ru_stime;
	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;
};

int __getrusage_time32(int who, struct rusage *usage)
{
	struct rusage ru;
	int r = getrusage(who, &ru);
	if (!r) memcpy(usage, &ru, sizeof(struct compat_rusage));
	return r;
}
debug log:

solving f8bd46ba ...
found f8bd46ba in https://inbox.vuxu.org/musl/20190802214433.GA25193@brightrain.aerifal.cx/

applying [1/1] https://inbox.vuxu.org/musl/20190802214433.GA25193@brightrain.aerifal.cx/
diff --git a/compat/time32/getrusage_time32.c b/compat/time32/getrusage_time32.c
new file mode 100644
index 00000000..f8bd46ba

Checking patch compat/time32/getrusage_time32.c...
Applied patch compat/time32/getrusage_time32.c cleanly.

index at:
100644 f8bd46ba086b8261a53937896d926f3029079e8c	compat/time32/getrusage_time32.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).