Skip to content

Commit 0cad2c2

Browse files
committed
Auto merge of #3534 - alyssais:musl-sched, r=JohnTitor
Provide the same sched.h constants for musl as gnu I don't understand why these constants from Linux headers aren't just defined in linux_like/mod.rs. Surely they'd be the same for every libc?
2 parents 1abc2e4 + 2670fb1 commit 0cad2c2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/linux-musl.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ XDP_UMEM_PGOFF_COMPLETION_RING
4747
XSK_UNALIGNED_BUF_OFFSET_SHIFT
4848
XSK_UNALIGNED_BUF_ADDR_MASK
4949
XDP_PKT_CONTD
50+
CLONE_NEWTIME
51+
CLONE_CLEAR_SIGHAND
52+
CLONE_INTO_CGROUP
5053
adjtimex
5154
aio_cancel
5255
aio_error

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,11 @@ pub const XSK_UNALIGNED_BUF_ADDR_MASK: ::c_ulonglong = (1 << XSK_UNALIGNED_BUF_O
810810

811811
pub const XDP_PKT_CONTD: ::__u32 = 1 << 0;
812812

813+
// linux/sched.h
814+
pub const CLONE_NEWTIME: ::c_int = 0x80;
815+
pub const CLONE_CLEAR_SIGHAND: ::c_int = 0x100000000;
816+
pub const CLONE_INTO_CGROUP: ::c_int = 0x200000000;
817+
813818
cfg_if! {
814819
if #[cfg(target_arch = "s390x")] {
815820
pub const POSIX_FADV_DONTNEED: ::c_int = 6;

0 commit comments

Comments
 (0)