LibC: Add stub implementations for set{rlimit,priority}

This commit is contained in:
Bananymous 2025-01-25 18:15:50 +02:00
parent cbcb9f9044
commit caa8c1da90
1 changed files with 14 additions and 0 deletions

View File

@ -61,3 +61,17 @@ int getrusage(int who, struct rusage* r_usage)
return 0;
}
int setrlimit(int resource, const struct rlimit* rlp)
{
dwarnln("TODO: setrlimit({}, {})", resource, rlp);
errno = ENOTSUP;
return -1;
}
int setpriority(int which, id_t who, int value)
{
dwarnln("TODO: setpriority({}, {}, {})", which, who, value);
errno = ENOTSUP;
return -1;
}