]> git.proxmox.com Git - rustc.git/blame - src/vendor/libc/src/unix/bsd/apple/b64.rs
New upstream version 1.25.0+dfsg1
[rustc.git] / src / vendor / libc / src / unix / bsd / apple / b64.rs
CommitLineData
476ff2be
SL
1//! 64-bit specific Apple (ios/darwin) definitions
2
3pub type c_long = i64;
4pub type c_ulong = u64;
3b2f2976 5pub type boolean_t = ::c_uint;
476ff2be
SL
6
7s! {
8 pub struct pthread_attr_t {
9 __sig: c_long,
10 __opaque: [::c_char; 56]
11 }
3b2f2976
XL
12
13 pub struct timeval32 {
14 pub tv_sec: i32,
15 pub tv_usec: i32,
16 }
17
18 pub struct if_data {
19 pub ifi_type: ::c_uchar,
20 pub ifi_typelen: ::c_uchar,
21 pub ifi_physical: ::c_uchar,
22 pub ifi_addrlen: ::c_uchar,
23 pub ifi_hdrlen: ::c_uchar,
24 pub ifi_recvquota: ::c_uchar,
25 pub ifi_xmitquota: ::c_uchar,
26 pub ifi_unused1: ::c_uchar,
27 pub ifi_mtu: u32,
28 pub ifi_metric: u32,
29 pub ifi_baudrate: u32,
30 pub ifi_ipackets: u32,
31 pub ifi_ierrors: u32,
32 pub ifi_opackets: u32,
33 pub ifi_oerrors: u32,
34 pub ifi_collisions: u32,
35 pub ifi_ibytes: u32,
36 pub ifi_obytes: u32,
37 pub ifi_imcasts: u32,
38 pub ifi_omcasts: u32,
39 pub ifi_iqdrops: u32,
40 pub ifi_noproto: u32,
41 pub ifi_recvtiming: u32,
42 pub ifi_xmittiming: u32,
43 pub ifi_lastchange: timeval32,
44 pub ifi_unused2: u32,
45 pub ifi_hwassist: u32,
46 pub ifi_reserved1: u32,
47 pub ifi_reserved2: u32,
48 }
2c00a5a8
XL
49
50 pub struct bpf_hdr {
51 pub bh_tstamp: ::timeval32,
52 pub bh_caplen: ::uint32_t,
53 pub bh_datalen: ::uint32_t,
54 pub bh_hdrlen: ::c_ushort,
55 }
476ff2be
SL
56}
57
58pub const __PTHREAD_MUTEX_SIZE__: usize = 56;
59pub const __PTHREAD_COND_SIZE__: usize = 40;
60pub const __PTHREAD_CONDATTR_SIZE__: usize = 8;
61pub const __PTHREAD_RWLOCK_SIZE__: usize = 192;
041b39d2 62pub const __PTHREAD_RWLOCKATTR_SIZE__: usize = 16;
476ff2be
SL
63
64pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459;
65pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40107458;
7cac9316
XL
66
67pub const FIONREAD: ::c_ulong = 0x4004667f;