From 2e6de3759cd4ac73212621c7c2f6f4dd36ed610d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Mon, 26 Nov 2012 18:11:11 +0100 Subject: [PATCH] Noux: add getrlimit() dummy to libc_noux As long as there is no proper getrlimit() support prevent programs from using it by providing a dummy implementation. --- ports/src/lib/libc_noux/plugin.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ports/src/lib/libc_noux/plugin.cc b/ports/src/lib/libc_noux/plugin.cc index ee95848ea1..6a1d2eb508 100644 --- a/ports/src/lib/libc_noux/plugin.cc +++ b/ports/src/lib/libc_noux/plugin.cc @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -176,6 +177,13 @@ extern "C" uid_t geteuid() } +extern "C" int getrlimit(int resource, struct rlimit *rlim) +{ + PDBG("not implemented"); + return -1; +} + + /** * Utility to copy-out syscall results to buf struct *