mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibC: Add sched_yield(), needed for GCC 8.3.0 build.
This commit is contained in:
parent
a9d09e9020
commit
f9d3abf5d0
3 changed files with 25 additions and 1 deletions
14
LibC/sched.cpp
Normal file
14
LibC/sched.cpp
Normal file
|
@ -0,0 +1,14 @@
|
|||
#include <sched.h>
|
||||
#include <errno.h>
|
||||
#include <Kernel/Syscall.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
int sched_yield()
|
||||
{
|
||||
int rc = syscall(SC_yield);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue