LibC: create a stub for getrusage.

This commit is contained in:
Xiao NuoFu 2020-04-05 18:10:57 +02:00 committed by Andreas Kling
parent e323246517
commit 5fe521c507
Notes: sideshowbarker 2024-07-19 07:51:47 +09:00

View file

@ -26,6 +26,7 @@
#include <assert.h>
#include <ulimit.h>
#include <sys/resource.h>
extern "C" {
@ -36,4 +37,13 @@ long ulimit(int cmd, long newlimit)
ASSERT_NOT_REACHED();
return -1;
}
int getrusage(int who, struct rusage *usage)
{
(void)who;
(void)usage;
ASSERT_NOT_REACHED();
return -1;
}
}