Skip to content

Commit

Permalink
Merge pull request #66 from hvdijk/x32
Browse files Browse the repository at this point in the history
Fix syscall definitions for x86_64-unknown-linux-gnux32.
  • Loading branch information
lucab authored Feb 8, 2021
2 parents 880c6b2 + 44e1eb7 commit f6178d0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/nr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,16 @@ pub const CAPGET: i32 = 184;
#[cfg(target_arch = "x86")]
pub const CAPSET: i32 = 185;

#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
pub const CAPGET: i64 = 125;
#[cfg(target_arch = "x86_64")]
#[cfg(all(target_arch = "x86_64", target_pointer_width = "64"))]
pub const CAPSET: i64 = 126;

#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
pub const CAPGET: i32 = 0x40000000 + 125;
#[cfg(all(target_arch = "x86_64", target_pointer_width = "32"))]
pub const CAPSET: i32 = 0x40000000 + 126;

#[cfg(target_arch = "aarch64")]
pub const CAPGET: i64 = 90;
#[cfg(target_arch = "aarch64")]
Expand Down

0 comments on commit f6178d0

Please sign in to comment.