mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +00:00
LibC: Add stubs for getrlimit()/setrlimit()
This commit is contained in:
parent
6e80b9fd01
commit
1c3c072a76
2 changed files with 31 additions and 0 deletions
|
@ -23,4 +23,16 @@ int getrusage([[maybe_unused]] int who, [[maybe_unused]] struct rusage* usage)
|
|||
dbgln("FIXME: Implement getrusage()");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int getrlimit([[maybe_unused]] int resource, rlimit* rl)
|
||||
{
|
||||
rl->rlim_cur = RLIM_INFINITY;
|
||||
rl->rlim_max = RLIM_INFINITY;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int setrlimit([[maybe_unused]] int resource, [[maybe_unused]] rlimit const* rl)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue