1 2 3 4 5 6 7 8
#include <sys/resource.h> #include <string.h> #include "syscall.h" int getrusage(int who, struct rusage *ru) { return syscall(SYS_getrusage, who, ru); }