Skip to content

Commit 4286e0e

Browse files
alyssaistgross35
authored andcommitted
Provide the same sched.h constants for musl as gnu
1 parent d00adf4 commit 4286e0e

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
@@ -1001,11 +1001,6 @@ pub const GENL_ID_PMCRAID: c_int = crate::NLMSG_MIN_TYPE + 2;
10011001

10021002
pub const ELFOSABI_ARM_AEABI: u8 = 64;
10031003

1004-
// linux/sched.h
1005-
pub const CLONE_NEWTIME: c_int = 0x80;
1006-
pub const CLONE_CLEAR_SIGHAND: c_ulonglong = 0x100000000;
1007-
pub const CLONE_INTO_CGROUP: c_ulonglong = 0x200000000;
1008-
10091004
// linux/keyctl.h
10101005
pub const KEYCTL_DH_COMPUTE: u32 = 23;
10111006
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
@@ -5864,6 +5864,10 @@ pub const SCHED_FLAG_KEEP_PARAMS: c_int = 0x10;
58645864
pub const SCHED_FLAG_UTIL_CLAMP_MIN: c_int = 0x20;
58655865
pub const SCHED_FLAG_UTIL_CLAMP_MAX: c_int = 0x40;
58665866

5867+
pub const CLONE_NEWTIME: c_int = 0x80;
5868+
pub const CLONE_CLEAR_SIGHAND: c_ulonglong = 0x100000000;
5869+
pub const CLONE_INTO_CGROUP: c_ulonglong = 0x200000000;
5870+
58675871
// linux/if_xdp.h
58685872
pub const XDP_SHARED_UMEM: crate::__u16 = 1 << 0;
58695873
pub const XDP_COPY: crate::__u16 = 1 << 1;

0 commit comments

Comments
 (0)