Skip to content

Commit 9cf0194

Browse files
committed
Enable clone3() syscall on SPARC which was added in Linux v7.0
1 parent f0a06e2 commit 9cf0194

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

libc-test/build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3161,8 +3161,7 @@ fn test_linux(target: &str) {
31613161
"SYS_pidfd_open" if mips => true,
31623162

31633163
// FIXME: Not currently available in headers on MIPS
3164-
// Not yet implemented on sparc64
3165-
"SYS_clone3" if mips | sparc64 => true,
3164+
"SYS_clone3" if mips => true,
31663165

31673166
// FIXME: these syscalls were added in Linux 5.9 or later
31683167
// and are currently not included in the glibc headers.

src/unix/linux_like/linux/gnu/b32/sparc/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,6 @@ pub const SYS_fsconfig: ::c_long = 431;
836836
pub const SYS_fsmount: ::c_long = 432;
837837
pub const SYS_fspick: ::c_long = 433;
838838
pub const SYS_pidfd_open: ::c_long = 434;
839-
// Reserved in the kernel, but not actually implemented yet
840839
pub const SYS_clone3: ::c_long = 435;
841840
pub const SYS_close_range: ::c_long = 436;
842841
pub const SYS_openat2: ::c_long = 437;

src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,6 @@ pub const SYS_fsconfig: ::c_long = 431;
896896
pub const SYS_fsmount: ::c_long = 432;
897897
pub const SYS_fspick: ::c_long = 433;
898898
pub const SYS_pidfd_open: ::c_long = 434;
899-
// Reserved in the kernel, but not actually implemented yet
900899
pub const SYS_clone3: ::c_long = 435;
901900
pub const SYS_close_range: ::c_long = 436;
902901
pub const SYS_openat2: ::c_long = 437;

0 commit comments

Comments
 (0)