aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.de>2010-03-13 19:36:33 +0100
committermaximilian attems <max@stro.at>2010-06-20 21:11:13 +0200
commitfcceed7687bde392831c8eefa4c36600ce837fac (patch)
tree877930902017881e99805ea0f607f41d3e743c23
parent9560c24c09da39206fc999786824d48aaea38406 (diff)
downloadklibc-fcceed7687bde392831c8eefa4c36600ce837fac.tar.gz
[klibc] add getrusage()
we define rusage, but had no way to see this stats. it may allow compiling mksh against klibc. Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/include/sys/resource.h2
-rw-r--r--usr/klibc/SYSCALLS.def1
2 files changed, 3 insertions, 0 deletions
diff --git a/usr/include/sys/resource.h b/usr/include/sys/resource.h
index 41cefb42b4719..5d8bd5254a589 100644
--- a/usr/include/sys/resource.h
+++ b/usr/include/sys/resource.h
@@ -12,4 +12,6 @@
__extern int getpriority(int, int);
__extern int setpriority(int, int, int);
+__extern int getrusage(int, struct rusage *);
+
#endif /* _SYS_RESOURCE_H */
diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
index f81452ca7b607..e395119811e4a 100644
--- a/usr/klibc/SYSCALLS.def
+++ b/usr/klibc/SYSCALLS.def
@@ -47,6 +47,7 @@ int execve(const char *, char * const *, char * const *);
<alpha,ia64> int getpriority(int, int);
<!alpha,ia64> int getpriority::__getpriority(int, int);
int setpriority(int, int, int);
+int getrusage(int, struct rusage *);
int sched_setscheduler(pid_t, int, const struct sched_param *);
int sched_yield();
<i386> int prctl@varadic(int, unsigned long, unsigned long, unsigned long, unsigned long);