blob: 0c9566423690faee8b33559f31f934d837d975ef (
plain)
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
31
32
33
34
35
36
37
|
--- include/sys/resource.h.old 2010-12-29 03:18:01.000000000 +0000
+++ include/sys/resource.h 2010-12-29 03:20:10.000000000 +0000
@@ -47,6 +47,10 @@
#include <sys/types.h> /* For the definition of rlim_t */
#endif /* _SYS_TYPES_H */
+#ifndef _SYS_TIME_H
+#include <sys/time.h>
+#endif
+
/****************************************************************************/
#ifdef __cplusplus
@@ -90,6 +94,23 @@
/****************************************************************************/
+#define RUSAGE_SELF 0
+#define RUSAGE_CHILDREN 1
+
+/****************************************************************************/
+
+struct rusage
+{
+ struct timeval ru_utime;
+ struct timeval ru_stime;
+};
+
+/****************************************************************************/
+
+extern int getrusage(int who, struct rusage *usage);
+
+/****************************************************************************/
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
|