Skip to content

Commit dc7d7d7

Browse files
committed
Rollup merge of rust-lang#26809 - cmr:libc-ioctl, r=alexcrichton
None
2 parents 31f4f41 + f2fc920 commit dc7d7d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liblibc/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6128,7 +6128,7 @@ pub mod funcs {
61286128
use types::os::arch::c95::{c_char, c_uchar, c_int, c_uint, c_ulong, size_t};
61296129

61306130
extern {
6131-
pub fn ioctl(d: c_int, request: c_ulong, ...) -> c_int;
6131+
pub fn ioctl(fd: c_int, request: c_ulong, ...) -> c_int;
61326132
pub fn sysctl(name: *mut c_int,
61336133
namelen: c_uint,
61346134
oldp: *mut c_void,
@@ -6160,12 +6160,12 @@ pub mod funcs {
61606160
#[cfg(any(target_os = "linux", target_os = "android"))]
61616161
pub mod bsd44 {
61626162
use types::common::c95::{c_void};
6163-
use types::os::arch::c95::{c_uchar, c_int, size_t};
6163+
use types::os::arch::c95::{c_uchar, c_int, c_ulong, size_t};
61646164

61656165
extern {
61666166
#[cfg(not(all(target_os = "android", target_arch = "aarch64")))]
61676167
pub fn getdtablesize() -> c_int;
6168-
pub fn ioctl(d: c_int, request: c_int, ...) -> c_int;
6168+
pub fn ioctl(fd: c_int, request: c_ulong, ...) -> c_int;
61696169
pub fn madvise(addr: *mut c_void, len: size_t, advice: c_int)
61706170
-> c_int;
61716171
pub fn mincore(addr: *mut c_void, len: size_t, vec: *mut c_uchar)

0 commit comments

Comments
 (0)