diff options
author | Bryant Mairs <bryantmairs@google.com> | 2018-01-30 19:52:49 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2018-04-10 08:35:43 -0700 |
commit | 5dad660fd4b53918214dc741bf0c2e2b20b655db (patch) | |
tree | e9f9133eeae384e94acd3511ef2eb442540d1aa8 /src/sys/ioctl/linux.rs | |
parent | 1a815f11473c1eb91a5613f8fe67d5e97975b3fc (diff) | |
download | nix-5dad660fd4b53918214dc741bf0c2e2b20b655db.zip |
Correct the third argument to ioctl on appropriate platforms.
While usually `ioctl()` passes a pointer, the function call has been
overloaded to allow integers to be passed. For some platforms this
is an `int` and on others it's a `ulong`.
Fixes #824.
Diffstat (limited to 'src/sys/ioctl/linux.rs')
-rw-r--r-- | src/sys/ioctl/linux.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/ioctl/linux.rs b/src/sys/ioctl/linux.rs index e0d02ad4..17c8cff9 100644 --- a/src/sys/ioctl/linux.rs +++ b/src/sys/ioctl/linux.rs @@ -5,6 +5,9 @@ pub type ioctl_num_type = ::libc::c_int; #[cfg(not(any(target_os = "android", target_env = "musl")))] #[doc(hidden)] pub type ioctl_num_type = ::libc::c_ulong; +/// The datatype used for the 3rd argument +#[doc(hidden)] +pub type ioctl_param_type = ::libc::c_ulong; #[doc(hidden)] pub const NRBITS: ioctl_num_type = 8; |