]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/missing_sched.h
Merge pull request #11827 from keszybz/pkgconfig-variables
[thirdparty/systemd.git] / src / basic / missing_sched.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <sched.h>
5
6 #ifndef CLONE_NEWCGROUP
7 #define CLONE_NEWCGROUP 0x02000000
8 #endif
9
10 /* Not exposed yet. Defined at include/linux/sched.h */
11 #ifndef PF_KTHREAD
12 #define PF_KTHREAD 0x00200000
13 #endif
14
15 /* The maximum thread/process name length including trailing NUL byte. This mimics the kernel definition of the same
16 * name, which we need in userspace at various places but is not defined in userspace currently, neither under this
17 * name nor any other. */
18 /* Not exposed yet. Defined at include/linux/sched.h */
19 #ifndef TASK_COMM_LEN
20 #define TASK_COMM_LEN 16
21 #endif