mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
Kernel+LibC: Share definitions for sched.h
This commit is contained in:
parent
c9a5d83ccc
commit
dfd78b75d8
2 changed files with 22 additions and 4 deletions
21
Kernel/API/POSIX/sched.h
Normal file
21
Kernel/API/POSIX/sched.h
Normal 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
|
|
@ -16,6 +16,7 @@
|
||||||
#include <Kernel/API/POSIX/net/route.h>
|
#include <Kernel/API/POSIX/net/route.h>
|
||||||
#include <Kernel/API/POSIX/netinet/in.h>
|
#include <Kernel/API/POSIX/netinet/in.h>
|
||||||
#include <Kernel/API/POSIX/poll.h>
|
#include <Kernel/API/POSIX/poll.h>
|
||||||
|
#include <Kernel/API/POSIX/sched.h>
|
||||||
#include <Kernel/API/POSIX/serenity.h>
|
#include <Kernel/API/POSIX/serenity.h>
|
||||||
#include <Kernel/API/POSIX/signal.h>
|
#include <Kernel/API/POSIX/signal.h>
|
||||||
#include <Kernel/API/POSIX/stdio.h>
|
#include <Kernel/API/POSIX/stdio.h>
|
||||||
|
@ -48,10 +49,6 @@ typedef u8 __u8;
|
||||||
typedef int __s32;
|
typedef int __s32;
|
||||||
typedef short __s16;
|
typedef short __s16;
|
||||||
|
|
||||||
struct sched_param {
|
|
||||||
int sched_priority;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define ST_RDONLY 0x1
|
#define ST_RDONLY 0x1
|
||||||
#define ST_NOSUID 0x2
|
#define ST_NOSUID 0x2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue