Skip to content

Commit 301790e

Browse files
committed
Auto merge of #2986 - dtolnay-contrib:ficlone, r=JohnTitor
Add FICLONE ioctl for linux aarch64 The ioctl number is the same on aarch64 as on x86_64: - https://github.com/sunfishcode/linux-raw-sys/blob/v0.1.2/src/aarch64/ioctl.rs#L215-L216 - https://github.com/sunfishcode/linux-raw-sys/blob/v0.1.2/src/x86_64/ioctl.rs#L215-L216
2 parents a2b0b4f + 9857684 commit 301790e

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)