File tree 3 files changed +9
-99
lines changed
3 files changed +9
-99
lines changed Original file line number Diff line number Diff line change 1
1
/// The datatype used for the ioctl number
2
2
#[ doc( hidden) ]
3
+ #[ cfg( not( target_os = "illumos" ) ) ]
3
4
pub type ioctl_num_type = :: libc:: c_ulong ;
5
+
6
+ #[ doc( hidden) ]
7
+ #[ cfg( target_os = "illumos" ) ]
8
+ pub type ioctl_num_type = :: libc:: c_int ;
9
+
4
10
/// The datatype used for the 3rd argument
5
11
#[ doc( hidden) ]
6
12
pub type ioctl_param_type = :: libc:: c_int ;
@@ -12,6 +18,7 @@ mod consts {
12
18
#[ doc( hidden) ]
13
19
pub const OUT : ioctl_num_type = 0x4000_0000 ;
14
20
#[ doc( hidden) ]
21
+ #[ allow( overflowing_literals) ]
15
22
pub const IN : ioctl_num_type = 0x8000_0000 ;
16
23
#[ doc( hidden) ]
17
24
pub const INOUT : ioctl_num_type = IN |OUT ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ pub use self::linux::*;
232
232
233
233
#[ cfg( any( target_os = "dragonfly" ,
234
234
target_os = "freebsd" ,
235
+ target_os = "illumos" ,
235
236
target_os = "ios" ,
236
237
target_os = "macos" ,
237
238
target_os = "netbsd" ,
@@ -241,19 +242,13 @@ mod bsd;
241
242
242
243
#[ cfg( any( target_os = "dragonfly" ,
243
244
target_os = "freebsd" ,
245
+ target_os = "illumos" ,
244
246
target_os = "ios" ,
245
247
target_os = "macos" ,
246
248
target_os = "netbsd" ,
247
249
target_os = "openbsd" ) ) ]
248
250
pub use self :: bsd:: * ;
249
251
250
- #[ cfg( target_os = "illumos" ) ]
251
- #[ macro_use]
252
- mod illumos;
253
-
254
- #[ cfg( target_os = "illumos" ) ]
255
- pub use self :: illumos:: * ;
256
-
257
252
/// Convert raw ioctl return value to a Nix result
258
253
#[ macro_export]
259
254
#[ doc( hidden) ]
You can’t perform that action at this time.
0 commit comments