Skip to content

Commit 9857684

Browse files
committed
Add FICLONE ioctl for linux aarch64
1 parent 7d615f0 commit 9857684

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

libc-test/semver/linux-aarch64.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ BPF_W
3838
BPF_X
3939
BPF_XOR
4040
CIBAUD
41+
FICLONE
42+
FICLONERANGE
4143
MADV_SOFT_OFFLINE
4244
MAP_SYNC
4345
SIGSTKFLT

src/unix/linux_like/linux/arch/generic/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ cfg_if! {
106106
}
107107

108108
cfg_if! {
109-
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
109+
if #[cfg(any(target_arch = "x86",
110+
target_arch = "x86_64",
111+
target_arch = "aarch64"))] {
110112
pub const FICLONE: ::c_ulong = 0x40049409;
111113
pub const FICLONERANGE: ::c_ulong = 0x4020940D;
112114
}

0 commit comments

Comments
 (0)