Skip to content

Commit cf1a3e1

Browse files
committed
Fix bitness issue
1 parent c1fd075 commit cf1a3e1

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

src/unix/bsd/apple/b32.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 12;
9494
pub const TIOCTIMESTAMP: ::c_ulong = 0x40087459;
9595
pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40087458;
9696

97+
pub const BIOCSETF: ::c_ulong = 0x80084267;
98+
pub const BIOCSRTIMEOUT: ::c_ulong = 0x8008426d;
99+
pub const BIOCGRTIMEOUT: ::c_ulong = 0x4008426e;
100+
pub const BIOCSETFNR: ::c_ulong = 0x8008427e;
101+
97102
extern {
98103
pub fn exchangedata(path1: *const ::c_char,
99104
path2: *const ::c_char,

src/unix/bsd/apple/b64.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 16;
9999
pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
100100
pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40107458;
101101

102+
pub const BIOCSETF: ::c_ulong = 0x80104267;
103+
pub const BIOCSRTIMEOUT: ::c_ulong = 0x8010426d;
104+
pub const BIOCGRTIMEOUT: ::c_ulong = 0x4010426e;
105+
pub const BIOCSETFNR: ::c_ulong = 0x8010427e;
106+
102107
extern {
103108
pub fn exchangedata(path1: *const ::c_char,
104109
path2: *const ::c_char,

src/unix/bsd/apple/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,6 @@ pub const TIOCPTYGNAME: ::c_uint = 0x40807453;
17621762
pub const TIOCPTYUNLK: ::c_uint = 0x20007452;
17631763

17641764
pub const BIOCGDLTLIST: ::c_ulong = 0xc00c4279;
1765-
pub const BIOCSETFNR: ::c_ulong = 0x8010427e;
17661765

17671766
pub const FIODTYPE: ::c_ulong = 0x4004667a;
17681767

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,10 @@ pub const SLIPDISC: ::c_int = 0x4;
10091009
pub const PPPDISC: ::c_int = 0x5;
10101010
pub const NETGRAPHDISC: ::c_int = 0x6;
10111011

1012+
pub const BIOCSETF: ::c_ulong = 0x80104267;
10121013
pub const BIOCGDLTLIST: ::c_ulong = 0xc0104279;
1014+
pub const BIOCSRTIMEOUT: ::c_ulong = 0x8010426d;
1015+
pub const BIOCGRTIMEOUT: ::c_ulong = 0x4010426e;
10131016

10141017
pub const FIODTYPE: ::c_ulong = 0x4004667a;
10151018
pub const FIOGETLBA: ::c_ulong = 0x40046679;

src/unix/bsd/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,14 +438,11 @@ pub const POLLWRBAND: ::c_short = 0x100;
438438

439439
pub const BIOCGBLEN: ::c_ulong = 0x40044266;
440440
pub const BIOCSBLEN: ::c_ulong = 0xc0044266;
441-
pub const BIOCSETF: ::c_ulong = 0x80104267;
442441
pub const BIOCFLUSH: ::c_uint = 0x20004268;
443442
pub const BIOCPROMISC: ::c_uint = 0x20004269;
444443
pub const BIOCGDLT: ::c_ulong = 0x4004426a;
445444
pub const BIOCGETIF: ::c_ulong = 0x4020426b;
446445
pub const BIOCSETIF: ::c_ulong = 0x8020426c;
447-
pub const BIOCSRTIMEOUT: ::c_ulong = 0x8010426d;
448-
pub const BIOCGRTIMEOUT: ::c_ulong = 0x4010426e;
449446
pub const BIOCGSTATS: ::c_ulong = 0x4008426f;
450447
pub const BIOCIMMEDIATE: ::c_ulong = 0x80044270;
451448
pub const BIOCVERSION: ::c_ulong = 0x40044271;

0 commit comments

Comments
 (0)