From cbcd3445cb146b18cd96aa86764e3e8864d6411c Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Tue, 24 Jun 2025 17:07:02 -0700 Subject: [PATCH] Add CLONE_CLEAR_SIGHAND and CLONE_INTO_CGROUP for Android --- libc-test/semver/android.txt | 2 ++ src/unix/linux_like/android/mod.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/libc-test/semver/android.txt b/libc-test/semver/android.txt index d2a6ac3750d4e..b5b41f0885ffe 100644 --- a/libc-test/semver/android.txt +++ b/libc-test/semver/android.txt @@ -238,9 +238,11 @@ CLOCK_TAI CLOCK_THREAD_CPUTIME_ID CLONE_CHILD_CLEARTID CLONE_CHILD_SETTID +CLONE_CLEAR_SIGHAND CLONE_DETACHED CLONE_FILES CLONE_FS +CLONE_INTO_CGROUP CLONE_IO CLONE_NEWCGROUP CLONE_NEWIPC diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index c5452526fa7fc..c215b3110c5ac 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -2863,6 +2863,8 @@ pub const SCHED_DEADLINE: c_int = 6; pub const SCHED_RESET_ON_FORK: c_int = 0x40000000; pub const CLONE_PIDFD: c_int = 0x1000; +pub const CLONE_CLEAR_SIGHAND: c_ulonglong = 0x100000000; +pub const CLONE_INTO_CGROUP: c_ulonglong = 0x200000000; // linux/membarrier.h pub const MEMBARRIER_CMD_QUERY: c_int = 0;