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.
This commit is contained in:
Josef Söntgen 2012-11-26 18:11:11 +01:00 committed by Norman Feske
parent 14c1f64733
commit 2e6de3759c
1 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <unistd.h>
#include <termios.h>
#include <pwd.h>
@ -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
*