@@ -102,14 +102,7 @@ s! {
102
102
pub ss_size: :: size_t,
103
103
pub ss_flags: :: c_int,
104
104
}
105
- }
106
105
107
- // FIXME: FreeBSD10 is only defined when building libstd
108
- // These types are not available in FreeBSD10 and
109
- // cfg'ing them out prevents them from being used from
110
- // libstd by accident.
111
- #[ cfg( not( freebsd10) ) ]
112
- s ! {
113
106
pub struct mmsghdr {
114
107
pub msg_hdr: :: msghdr,
115
108
pub msg_len: :: ssize_t,
@@ -314,33 +307,25 @@ cfg_if! {
314
307
}
315
308
}
316
309
317
- // FIXME: FreeBSD10 is only defined when building libstd
318
- // These constants are not available in FreeBSD10 and
319
- // cfg'ing them out prevents them from being used from
320
- // libstd by accident.
321
- cfg_if ! {
322
- if #[ cfg( not( freebsd10) ) ] {
323
- pub const SF_USER_READAHEAD : :: c_int = 0x00000008 ;
324
- pub const SF_NOCACHE : :: c_int = 0x00000010 ;
325
- pub const RLIMIT_KQUEUES : :: c_int = 13 ;
326
- pub const RLIMIT_UMTXP : :: c_int = 14 ;
327
- pub const EVFILT_PROCDESC : i16 = -8 ;
328
- pub const EVFILT_SENDFILE : i16 = -12 ;
329
- pub const EVFILT_EMPTY : i16 = -13 ;
330
- pub const SO_REUSEPORT_LB : :: c_int = 0x10000 ;
331
- pub const TCP_CCALGOOPT : :: c_int = 65 ;
332
- pub const TCP_PCAP_OUT : :: c_int = 2048 ;
333
- pub const TCP_PCAP_IN : :: c_int = 4096 ;
334
- pub const IP_BINDMULTI : :: c_int = 25 ;
335
- pub const IP_ORIGDSTADDR : :: c_int = 27 ;
336
- pub const IP_RECVORIGDSTADDR : :: c_int = IP_ORIGDSTADDR ;
337
- pub const IPV6_ORIGDSTADDR : :: c_int = 72 ;
338
- pub const IPV6_RECVORIGDSTADDR : :: c_int = IPV6_ORIGDSTADDR ;
339
- pub const PD_CLOEXEC : :: c_int = 0x00000002 ;
340
- pub const PD_ALLOWED_AT_FORK : :: c_int = PD_DAEMON | PD_CLOEXEC ;
341
- pub const IP_RSS_LISTEN_BUCKET : :: c_int = 26 ;
342
- }
343
- }
310
+ pub const SF_USER_READAHEAD : :: c_int = 0x00000008 ;
311
+ pub const SF_NOCACHE : :: c_int = 0x00000010 ;
312
+ pub const RLIMIT_KQUEUES : :: c_int = 13 ;
313
+ pub const RLIMIT_UMTXP : :: c_int = 14 ;
314
+ pub const EVFILT_PROCDESC : i16 = -8 ;
315
+ pub const EVFILT_SENDFILE : i16 = -12 ;
316
+ pub const EVFILT_EMPTY : i16 = -13 ;
317
+ pub const SO_REUSEPORT_LB : :: c_int = 0x10000 ;
318
+ pub const TCP_CCALGOOPT : :: c_int = 65 ;
319
+ pub const TCP_PCAP_OUT : :: c_int = 2048 ;
320
+ pub const TCP_PCAP_IN : :: c_int = 4096 ;
321
+ pub const IP_BINDMULTI : :: c_int = 25 ;
322
+ pub const IP_ORIGDSTADDR : :: c_int = 27 ;
323
+ pub const IP_RECVORIGDSTADDR : :: c_int = IP_ORIGDSTADDR ;
324
+ pub const IPV6_ORIGDSTADDR : :: c_int = 72 ;
325
+ pub const IPV6_RECVORIGDSTADDR : :: c_int = IPV6_ORIGDSTADDR ;
326
+ pub const PD_CLOEXEC : :: c_int = 0x00000002 ;
327
+ pub const PD_ALLOWED_AT_FORK : :: c_int = PD_DAEMON | PD_CLOEXEC ;
328
+ pub const IP_RSS_LISTEN_BUCKET : :: c_int = 26 ;
344
329
345
330
pub const SIGEV_THREAD_ID : :: c_int = 4 ;
346
331
@@ -1149,19 +1134,12 @@ f! {
1149
1134
}
1150
1135
}
1151
1136
1152
- // FIXME: FreeBSD10 is only defined when building libstd
1153
- // These functions are not available in FreeBSD10 and
1154
- // cfg'ing them out prevents them from being used from
1155
- // libstd by accident.
1156
- #[ cfg( not( freebsd10) ) ]
1157
1137
extern {
1158
1138
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
1159
1139
pub fn aio_waitcomplete ( iocbp : * mut * mut aiocb ,
1160
1140
timeout : * mut :: timespec ) -> :: ssize_t ;
1161
1141
pub fn mq_getfd_np ( mqd : :: mqd_t ) -> :: c_int ;
1162
- }
1163
1142
1164
- extern {
1165
1143
pub fn __error ( ) -> * mut :: c_int ;
1166
1144
1167
1145
pub fn clock_getres ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
0 commit comments