Skip to content

Commit 0e177e5

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

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
@@ -5,6 +5,9 @@ AIO_ALLDONE
55
AIO_CANCELED
66
AIO_NOTCANCELED
77
BOOT_TIME
8+
CLONE_CLEAR_SIGHAND
9+
CLONE_INTO_CGROUP
10+
CLONE_NEWTIME
811
DEAD_PROCESS
912
EMPTY
1013
Elf32_Chdr

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,11 @@ pub const MAXTC: c_long = 6;
885885
pub const _CS_V6_ENV: c_int = 1148;
886886
pub const _CS_V7_ENV: c_int = 1149;
887887

888+
// linux/sched.h
889+
pub const CLONE_NEWTIME: c_int = 0x80;
890+
pub const CLONE_CLEAR_SIGHAND: c_ulonglong = 0x100000000;
891+
pub const CLONE_INTO_CGROUP: c_ulonglong = 0x200000000;
892+
888893
cfg_if! {
889894
if #[cfg(target_arch = "s390x")] {
890895
pub const POSIX_FADV_DONTNEED: c_int = 6;

0 commit comments

Comments
 (0)