From a3bdf0456e6e75d7cac13d42b3b070990eb10568 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 7 Aug 2025 02:35:26 +0300 Subject: [PATCH] LibC: Add getpriority stub This is needed for our cmake port --- userspace/libraries/LibC/sys/resource.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/userspace/libraries/LibC/sys/resource.cpp b/userspace/libraries/LibC/sys/resource.cpp index 509414e0..04cdd17c 100644 --- a/userspace/libraries/LibC/sys/resource.cpp +++ b/userspace/libraries/LibC/sys/resource.cpp @@ -69,6 +69,13 @@ int setrlimit(int resource, const struct rlimit* rlp) return -1; } +int getpriority(int which, id_t who) +{ + dwarnln("TODO: getpriority({}, {}, {})", which, who); + errno = ENOTSUP; + return -1; +} + int setpriority(int which, id_t who, int value) { dwarnln("TODO: setpriority({}, {}, {})", which, who, value);