Skip to content

Commit

Permalink
add CLONE_NEWTIME to Linux/musl
Browse files Browse the repository at this point in the history
(backport <rust-lang#4226>)
(cherry picked from commit d05754d)
(cherry picked from commit e5a8390)

[ squashed two commits for the backport - Trevor ]
  • Loading branch information
SteveLauC authored and tgross35 committed Feb 14, 2025
1 parent ab5bbae commit fea6f13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/linux-musl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ AIO_ALLDONE
AIO_CANCELED
AIO_NOTCANCELED
BOOT_TIME
CLONE_NEWTIME
DEAD_PROCESS
EMPTY
Elf32_Chdr
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,8 @@ pub const XDP_PKT_CONTD: crate::__u32 = 1 << 0;
pub const _CS_V6_ENV: c_int = 1148;
pub const _CS_V7_ENV: c_int = 1149;

pub const CLONE_NEWTIME: c_int = 0x80;

cfg_if! {
if #[cfg(target_arch = "s390x")] {
pub const POSIX_FADV_DONTNEED: c_int = 6;
Expand Down

0 comments on commit fea6f13

Please sign in to comment.