summaryrefslogtreecommitdiff
path: root/tools/agbcc/include/sys/resource.h
diff options
context:
space:
mode:
authorsceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-17 00:05:03 -0800
committersceptillion <33798691+sceptillion@users.noreply.github.com>2017-12-17 00:05:03 -0800
commitd350b9543ca8c44531182cafaf39b024796d3d2d (patch)
tree9a911444119f7ef2fdb22baf017e38e2d3738b12 /tools/agbcc/include/sys/resource.h
parentbbdd5374b10dcc06f74d01932f9aedc033d9e1e9 (diff)
libc headers
Diffstat (limited to 'tools/agbcc/include/sys/resource.h')
-rw-r--r--tools/agbcc/include/sys/resource.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/agbcc/include/sys/resource.h b/tools/agbcc/include/sys/resource.h
new file mode 100644
index 0000000..eb82755
--- /dev/null
+++ b/tools/agbcc/include/sys/resource.h
@@ -0,0 +1,15 @@
+#ifndef _SYS_RESOURCE_H_
+#define _SYS_RESOURCE_H_
+
+#include <sys/time.h>
+
+#define RUSAGE_SELF 0 /* calling process */
+#define RUSAGE_CHILDREN -1 /* terminated child processes */
+
+struct rusage {
+ struct timeval ru_utime; /* user time used */
+ struct timeval ru_stime; /* system time used */
+};
+
+#endif
+