mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +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 <assert.h>
|
||||||
#include <ulimit.h>
|
#include <ulimit.h>
|
||||||
|
#include <sys/resource.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
|
@ -36,4 +37,13 @@ long ulimit(int cmd, long newlimit)
|
||||||
ASSERT_NOT_REACHED();
|
ASSERT_NOT_REACHED();
|
||||||
return -1;
|
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