mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
LibC: Add getpriority() and setpriority() stubs
Expected behavior left as a FIXME is outlined here: https://pubs.opengroup.org/onlinepubs/7908799/xsh/getpriority.html
This commit is contained in:
parent
a6539cc031
commit
380c42c405
3 changed files with 31 additions and 0 deletions
23
Userland/Libraries/LibC/priority.cpp
Normal file
23
Userland/Libraries/LibC/priority.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2021, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <sys/resource.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
int getpriority([[maybe_unused]] int which, [[maybe_unused]] id_t who)
|
||||
{
|
||||
dbgln("FIXME: Implement getpriority()");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int setpriority([[maybe_unused]] int which, [[maybe_unused]] id_t who, [[maybe_unused]] int value)
|
||||
{
|
||||
dbgln("FIXME: Implement setpriority()");
|
||||
return -1;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue