mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-03 04:26:45 +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/ioctl.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <sys/resource.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <pwd.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
|
* Utility to copy-out syscall results to buf struct
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user