mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel+LibC: Share definitions for sched.h
This commit is contained in:
parent
c9a5d83ccc
commit
dfd78b75d8
Notes:
sideshowbarker
2024-07-18 06:53:52 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dfd78b75d83
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/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
|
||||
|
||||
|
|
Loading…
Reference in a new issue