mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 22:47:50 +00:00
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:
parent
14c1f64733
commit
2e6de3759c
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user