summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorXiao NuoFu <xiaonuofu@email.it>2020-04-05 18:10:57 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-06 11:44:13 +0200
commit5fe521c507145e83e4e4d5eb41ecfe6eb5d5a330 (patch)
treebcea5160135cf78dbba47fffb4aae066173606ce /Libraries
parente3232465179885f490df9d6adcf55e68d31ccb35 (diff)
downloadserenity-5fe521c507145e83e4e4d5eb41ecfe6eb5d5a330.zip
LibC: create a stub for getrusage.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibC/ulimit.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Libraries/LibC/ulimit.cpp b/Libraries/LibC/ulimit.cpp
index d63b1c761f..26602c89c6 100644
--- a/Libraries/LibC/ulimit.cpp
+++ b/Libraries/LibC/ulimit.cpp
@@ -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;
+}
+
}