Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FICLONE ioctl for linux aarch64 #2986

Merged
merged 1 commit into from Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc-test/semver/linux-aarch64.txt
Expand Up @@ -38,6 +38,8 @@ BPF_W
BPF_X
BPF_XOR
CIBAUD
FICLONE
FICLONERANGE
MADV_SOFT_OFFLINE
MAP_SYNC
SIGSTKFLT
Expand Down
4 changes: 3 additions & 1 deletion src/unix/linux_like/linux/arch/generic/mod.rs
Expand Up @@ -106,7 +106,9 @@ cfg_if! {
}

cfg_if! {
if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
if #[cfg(any(target_arch = "x86",
target_arch = "x86_64",
target_arch = "aarch64"))] {
pub const FICLONE: ::c_ulong = 0x40049409;
pub const FICLONERANGE: ::c_ulong = 0x4020940D;
}
Expand Down