1
Fork 0
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:
Andreas Kling 2019-04-22 00:13:41 +02:00
parent a9d09e9020
commit f9d3abf5d0
3 changed files with 25 additions and 1 deletions

14
LibC/sched.cpp Normal file
View 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);
}
}