basic: move missing_sched.h -> include/sched.h
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <sched.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/prctl.h>
|
||||
@@ -8,7 +9,6 @@
|
||||
#include "capability-util.h"
|
||||
#include "errno-util.h"
|
||||
#include "log.h"
|
||||
#include "missing_sched.h"
|
||||
#include "parse-util.h"
|
||||
#include "path-util.h"
|
||||
#include "process-util.h"
|
||||
|
||||
@@ -5,23 +5,22 @@
|
||||
* to make struct sched_attr being defined.
|
||||
* Note, this must be included before sched.h, otherwise the headers conflict with each other. */
|
||||
#include <linux/sched/types.h>
|
||||
#include <sched.h> /* IWYU pragma: export */
|
||||
|
||||
#include "forward.h"
|
||||
#include_next <sched.h>
|
||||
|
||||
/* 769071ac9f20b6a447410c7eaa55d1a5233ef40c (5.8),
|
||||
* defined in sched.h since glibc-2.36. */
|
||||
#ifndef CLONE_NEWTIME
|
||||
# define CLONE_NEWTIME 0x00000080
|
||||
#else
|
||||
assert_cc(CLONE_NEWTIME == 0x00000080);
|
||||
_Static_assert(CLONE_NEWTIME == 0x00000080, "");
|
||||
#endif
|
||||
|
||||
/* Not exposed yet. Defined at include/linux/sched.h */
|
||||
#ifndef PF_KTHREAD
|
||||
# define PF_KTHREAD 0x00200000
|
||||
#else
|
||||
assert_cc(PF_KTHREAD == 0x00200000);
|
||||
_Static_assert(PF_KTHREAD == 0x00200000, "");
|
||||
#endif
|
||||
|
||||
/* The maximum thread/process name length including trailing NUL byte. This mimics the kernel definition of
|
||||
@@ -32,5 +31,5 @@ assert_cc(PF_KTHREAD == 0x00200000);
|
||||
#ifndef TASK_COMM_LEN
|
||||
# define TASK_COMM_LEN 16
|
||||
#else
|
||||
assert_cc(TASK_COMM_LEN == 16);
|
||||
_Static_assert(TASK_COMM_LEN == 16, "");
|
||||
#endif
|
||||
@@ -1,5 +1,6 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <sched.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/stat.h>
|
||||
@@ -9,7 +10,6 @@
|
||||
#include "errno-util.h"
|
||||
#include "fd-util.h"
|
||||
#include "memfd-util.h"
|
||||
#include "missing_sched.h"
|
||||
#include "string-util.h"
|
||||
#include "utf8.h"
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
/* Missing glibc definitions to access certain kernel APIs */
|
||||
|
||||
#include <linux/mempolicy.h>
|
||||
#include <sched.h>
|
||||
#include <signal.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/xattr.h>
|
||||
@@ -15,7 +16,6 @@
|
||||
|
||||
#include "forward.h"
|
||||
#include "missing_keyctl.h"
|
||||
#include "missing_sched.h"
|
||||
#include "missing_syscall_def.h"
|
||||
|
||||
/* ======================================================================= */
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include "log.h"
|
||||
#include "missing_magic.h"
|
||||
#include "missing_namespace.h"
|
||||
#include "missing_sched.h"
|
||||
#include "mountpoint-util.h"
|
||||
#include "namespace-util.h"
|
||||
#include "parse-util.h"
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#include "locale-util.h"
|
||||
#include "log.h"
|
||||
#include "memory-util.h"
|
||||
#include "missing_sched.h"
|
||||
#include "missing_syscall.h"
|
||||
#include "mountpoint-util.h"
|
||||
#include "namespace-util.h"
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#include "missing_sched.h"
|
||||
#include "process-util.h"
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user