Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,7 @@ fn test_android(target: &str) {
"sys/ucontext.h",
"sys/uio.h",
"sys/un.h",
"sys/user.h",
"sys/utsname.h",
"sys/vfs.h",
"sys/xattr.h",
Expand Down
1 change: 1 addition & 0 deletions libc-test/semver/android-aarch64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ SYS_arch_specific_syscall
SYS_syscalls
SYS_fcntl
__system_property_wait
user_regs_struct
1 change: 1 addition & 0 deletions libc-test/semver/linux-aarch64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ ip_mreqn
max_align_t
mcontext_t
ucontext_t
user_regs_struct
7 changes: 7 additions & 0 deletions src/unix/linux_like/android/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ s! {
__unused4: ::c_uint,
__unused5: ::c_uint,
}

pub struct user_regs_struct {
pub regs: [u64; 31],
pub sp: u64,
pub pc: u64,
pub pstate: u64,
}
}

pub const O_DIRECT: ::c_int = 0x10000;
Expand Down
7 changes: 7 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,13 @@ s! {
__size: [usize; 8]
}

pub struct user_regs_struct {
pub regs: [::c_ulonglong; 31],
pub sp: ::c_ulonglong,
pub pc: ::c_ulonglong,
pub pstate: ::c_ulonglong,
}

pub struct ipc_perm {
pub __key: ::key_t,
pub uid: ::uid_t,
Expand Down
7 changes: 7 additions & 0 deletions src/unix/linux_like/linux/musl/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ s! {
__unused: [::c_uint; 2],
}

pub struct user_regs_struct {
pub regs: [::c_ulonglong; 31],
pub sp: ::c_ulonglong,
pub pc: ::c_ulonglong,
pub pstate: ::c_ulonglong,
}

pub struct ipc_perm {
pub __ipc_perm_key: ::key_t,
pub uid: ::uid_t,
Expand Down