mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibC: create a stub for getrusage.
This commit is contained in:
parent
e323246517
commit
5fe521c507
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue