mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
LibC: create a stub for getrusage.
This commit is contained in:
parent
e323246517
commit
5fe521c507
Notes:
sideshowbarker
2024-07-19 07:51:47 +09:00
Author: https://github.com/xiaonuofu 🔰 Commit: https://github.com/SerenityOS/serenity/commit/5fe521c5071 Pull-request: https://github.com/SerenityOS/serenity/pull/1658 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/deoxxa
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
Reference in a new issue