Skip to content

Commit 1adff9a

Browse files
alyssaistgross35
authored andcommitted
Provide the same sched.h constants for musl as gnu
1 parent fc3234f commit 1adff9a

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ BPF_FS_MAGIC
3131
BTRFS_SUPER_MAGIC
3232
CGROUP2_SUPER_MAGIC
3333
CGROUP_SUPER_MAGIC
34-
CLONE_CLEAR_SIGHAND
35-
CLONE_INTO_CGROUP
36-
CLONE_NEWTIME
3734
CODA_SUPER_MAGIC
3835
CRAMFS_MAGIC
3936
DEAD_PROCESS

libc-test/semver/linux.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,18 @@ CLOCK_TAI
273273
CLOCK_THREAD_CPUTIME_ID
274274
CLONE_CHILD_CLEARTID
275275
CLONE_CHILD_SETTID
276+
CLONE_CLEAR_SIGHAND
276277
CLONE_DETACHED
277278
CLONE_FILES
278279
CLONE_FS
280+
CLONE_INTO_CGROUP
279281
CLONE_IO
280282
CLONE_NEWCGROUP
281283
CLONE_NEWIPC
282284
CLONE_NEWNET
283285
CLONE_NEWNS
284286
CLONE_NEWPID
287+
CLONE_NEWTIME
285288
CLONE_NEWUSER
286289
CLONE_NEWUTS
287290
CLONE_PARENT

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -977,11 +977,6 @@ pub const GENL_ID_PMCRAID: c_int = crate::NLMSG_MIN_TYPE + 2;
977977

978978
pub const ELFOSABI_ARM_AEABI: u8 = 64;
979979

980-
// linux/sched.h
981-
pub const CLONE_NEWTIME: c_int = 0x80;
982-
pub const CLONE_CLEAR_SIGHAND: c_ulonglong = 0x100000000;
983-
pub const CLONE_INTO_CGROUP: c_ulonglong = 0x200000000;
984-
985980
// linux/keyctl.h
986981
pub const KEYCTL_DH_COMPUTE: u32 = 23;
987982
pub const KEYCTL_PKEY_QUERY: u32 = 24;

src/unix/linux_like/linux/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5696,6 +5696,10 @@ pub const SCHED_FLAG_KEEP_PARAMS: c_int = 0x10;
56965696
pub const SCHED_FLAG_UTIL_CLAMP_MIN: c_int = 0x20;
56975697
pub const SCHED_FLAG_UTIL_CLAMP_MAX: c_int = 0x40;
56985698

5699+
pub const CLONE_NEWTIME: c_int = 0x80;
5700+
pub const CLONE_CLEAR_SIGHAND: c_ulonglong = 0x100000000;
5701+
pub const CLONE_INTO_CGROUP: c_ulonglong = 0x200000000;
5702+
56995703
// linux/if_xdp.h
57005704
pub const XDP_SHARED_UMEM: crate::__u16 = 1 << 0;
57015705
pub const XDP_COPY: crate::__u16 = 1 << 1;

0 commit comments

Comments
 (0)