Kernel+LibC: Share definitions for sched.h

This commit is contained in:
Andreas Kling 2021-08-14 19:40:40 +02:00
parent c9a5d83ccc
commit dfd78b75d8
Notes: sideshowbarker 2024-07-18 06:53:52 +09:00
2 changed files with 22 additions and 4 deletions

21
Kernel/API/POSIX/sched.h Normal file
View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <Kernel/API/POSIX/sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct sched_param {
int sched_priority;
};
#ifdef __cplusplus
}
#endif

View file

@ -16,6 +16,7 @@
#include <Kernel/API/POSIX/net/route.h>
#include <Kernel/API/POSIX/netinet/in.h>
#include <Kernel/API/POSIX/poll.h>
#include <Kernel/API/POSIX/sched.h>
#include <Kernel/API/POSIX/serenity.h>
#include <Kernel/API/POSIX/signal.h>
#include <Kernel/API/POSIX/stdio.h>
@ -48,10 +49,6 @@ typedef u8 __u8;
typedef int __s32;
typedef short __s16;
struct sched_param {
int sched_priority;
};
#define ST_RDONLY 0x1
#define ST_NOSUID 0x2