summaryrefslogtreecommitdiff
path: root/libc/src/unix/bsd/apple/b32.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-11-01 07:42:33 -0700
committerDaniel Mueller <deso@posteo.net>2019-11-01 07:42:33 -0700
commit49be10a8179165d24bbb8eb3490c4ca6f94b42c4 (patch)
tree642978648e57ba8b162a7378e8754df85ca83b37 /libc/src/unix/bsd/apple/b32.rs
parent9f3991a74fa5124e298582afa60b229dd005be40 (diff)
downloadnitrocli-49be10a8179165d24bbb8eb3490c4ca6f94b42c4.tar.gz
nitrocli-49be10a8179165d24bbb8eb3490c4ca6f94b42c4.tar.bz2
Update libc crate to 0.2.66
This change updates the libc crate to version 0.2.66. Import subrepo libc/:libc at 4f11029a68040c90acf771976b019c1ef273a8cd
Diffstat (limited to 'libc/src/unix/bsd/apple/b32.rs')
-rw-r--r--libc/src/unix/bsd/apple/b32.rs101
1 files changed, 0 insertions, 101 deletions
diff --git a/libc/src/unix/bsd/apple/b32.rs b/libc/src/unix/bsd/apple/b32.rs
deleted file mode 100644
index c05de30..0000000
--- a/libc/src/unix/bsd/apple/b32.rs
+++ /dev/null
@@ -1,101 +0,0 @@
-//! 32-bit specific Apple (ios/darwin) definitions
-
-pub type c_long = i32;
-pub type c_ulong = u32;
-pub type boolean_t = ::c_int;
-
-s! {
- pub struct if_data {
- pub ifi_type: ::c_uchar,
- pub ifi_typelen: ::c_uchar,
- pub ifi_physical: ::c_uchar,
- pub ifi_addrlen: ::c_uchar,
- pub ifi_hdrlen: ::c_uchar,
- pub ifi_recvquota: ::c_uchar,
- pub ifi_xmitquota: ::c_uchar,
- pub ifi_unused1: ::c_uchar,
- pub ifi_mtu: u32,
- pub ifi_metric: u32,
- pub ifi_baudrate: u32,
- pub ifi_ipackets: u32,
- pub ifi_ierrors: u32,
- pub ifi_opackets: u32,
- pub ifi_oerrors: u32,
- pub ifi_collisions: u32,
- pub ifi_ibytes: u32,
- pub ifi_obytes: u32,
- pub ifi_imcasts: u32,
- pub ifi_omcasts: u32,
- pub ifi_iqdrops: u32,
- pub ifi_noproto: u32,
- pub ifi_recvtiming: u32,
- pub ifi_xmittiming: u32,
- pub ifi_lastchange: ::timeval,
- pub ifi_unused2: u32,
- pub ifi_hwassist: u32,
- pub ifi_reserved1: u32,
- pub ifi_reserved2: u32,
- }
-
- pub struct bpf_hdr {
- pub bh_tstamp: ::timeval,
- pub bh_caplen: u32,
- pub bh_datalen: u32,
- pub bh_hdrlen: ::c_ushort,
- }
-}
-
-s_no_extra_traits!{
- pub struct pthread_attr_t {
- __sig: c_long,
- __opaque: [::c_char; 36]
- }
-}
-
-cfg_if! {
- if #[cfg(feature = "extra_traits")] {
- impl PartialEq for pthread_attr_t {
- fn eq(&self, other: &pthread_attr_t) -> bool {
- self.__sig == other.__sig
- && self.__opaque
- .iter()
- .zip(other.__opaque.iter())
- .all(|(a,b)| a == b)
- }
- }
- impl Eq for pthread_attr_t {}
- impl ::fmt::Debug for pthread_attr_t {
- fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
- f.debug_struct("pthread_attr_t")
- .field("__sig", &self.__sig)
- // FIXME: .field("__opaque", &self.__opaque)
- .finish()
- }
- }
- impl ::hash::Hash for pthread_attr_t {
- fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
- self.__sig.hash(state);
- self.__opaque.hash(state);
- }
- }
- }
-}
-
-#[doc(hidden)]
-#[deprecated(since = "0.2.55")]
-pub const NET_RT_MAXID: ::c_int = 10;
-
-pub const __PTHREAD_MUTEX_SIZE__: usize = 40;
-pub const __PTHREAD_COND_SIZE__: usize = 24;
-pub const __PTHREAD_CONDATTR_SIZE__: usize = 4;
-pub const __PTHREAD_RWLOCK_SIZE__: usize = 124;
-pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 12;
-
-pub const TIOCTIMESTAMP: ::c_ulong = 0x40087459;
-pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40087458;
-
-extern {
- pub fn exchangedata(path1: *const ::c_char,
- path2: *const ::c_char,
- options: ::c_ulong) -> ::c_int;
-}