1#ifndef SYS_RESOURCE_H
2#define SYS_RESOURCE_H
3
4#define RUSAGE_SELF	0
5#define RUSAGE_THREAD	1
6
7struct rusage
8{
9	struct timeval ru_utime;
10	struct timeval ru_stime;
11	int ru_nvcsw;
12	int ru_minflt;
13	int ru_majflt;
14	int ru_nivcsw;
15};
16
17int getrusage(int who, struct rusage *r_usage);
18
19#endif /* SYS_RESOURCE_H */
20