Debian Codegraph @

debian/missing-sources/libc/src/unix/bsd/apple/b32/mod.rs

raw
1 //! 32-bit specific Apple (ios/darwin) definitions
2
3 use crate::prelude::*;
4
5 pub type boolean_t = c_int;
6
7 s! {
8 pub struct if_data {
9 pub ifi_type: c_uchar,
10 pub ifi_typelen: c_uchar,
11 pub ifi_physical: c_uchar,
12 pub ifi_addrlen: c_uchar,
13 pub ifi_hdrlen: c_uchar,
14 pub ifi_recvquota: c_uchar,
15 pub ifi_xmitquota: c_uchar,
16 pub ifi_unused1: c_uchar,
17 pub ifi_mtu: u32,
18 pub ifi_metric: u32,
19 pub ifi_baudrate: u32,
20 pub ifi_ipackets: u32,
21 pub ifi_ierrors: u32,
22 pub ifi_opackets: u32,
23 pub ifi_oerrors: u32,
24 pub ifi_collisions: u32,
25 pub ifi_ibytes: u32,
26 pub ifi_obytes: u32,
27 pub ifi_imcasts: u32,
28 pub ifi_omcasts: u32,
29 pub ifi_iqdrops: u32,
30 pub ifi_noproto: u32,
31 pub ifi_recvtiming: u32,
32 pub ifi_xmittiming: u32,
33 pub ifi_lastchange: crate::timeval,
34 pub ifi_unused2: u32,
35 pub ifi_hwassist: u32,
36 pub ifi_reserved1: u32,
37 pub ifi_reserved2: u32,
38 }
39
40 pub struct bpf_hdr {
41 pub bh_tstamp: crate::timeval,
42 pub bh_caplen: u32,
43 pub bh_datalen: u32,
44 pub bh_hdrlen: c_ushort,
45 }
46
47 pub struct malloc_zone_t {
48 __private: [crate::uintptr_t; 18], // FIXME(macos): keeping private for now
49 }
50 }
51
52 s_no_extra_traits! {
53 #[repr(align(16))]
54 pub struct max_align_t {
55 priv_: [f64; 2],
56 }
57 }
58
59 #[doc(hidden)]
60 #[deprecated(since = "0.2.55")]
61 pub const NET_RT_MAXID: c_int = 10;
62
63 pub const TIOCTIMESTAMP: c_ulong = 0x40087459;
64 pub const TIOCDCDTIMESTAMP: c_ulong = 0x40087458;
65
66 pub const BIOCSETF: c_ulong = 0x80084267;
67 pub const BIOCSRTIMEOUT: c_ulong = 0x8008426d;
68 pub const BIOCGRTIMEOUT: c_ulong = 0x4008426e;
69 pub const BIOCSETFNR: c_ulong = 0x8008427e;
70
71 extern "C" {
72 pub fn exchangedata(path1: *const c_char, path2: *const c_char, options: c_ulong) -> c_int;
73 }