]> git.proxmox.com Git - rustc.git/blame - vendor/libc/src/unix/newlib/aarch64/mod.rs
New upstream version 1.40.0+dfsg1
[rustc.git] / vendor / libc / src / unix / newlib / aarch64 / mod.rs
CommitLineData
ff7c6d11
XL
1pub type c_char = u8;
2pub type wchar_t = u32;
3
476ff2be
SL
4pub type c_long = i64;
5pub type c_ulong = u64;
e74abb32
XL
6
7s! {
8 pub struct sockaddr {
9 pub sa_len: u8,
10 pub sa_family: ::sa_family_t,
11 pub sa_data: [::c_char; 14],
12 }
13
14 pub struct sockaddr_in6 {
15 pub sin6_len: u8,
16 pub sin6_family: ::sa_family_t,
17 pub sin6_port: ::in_port_t,
18 pub sin6_flowinfo: u32,
19 pub sin6_addr: ::in6_addr,
20 pub sin6_scope_id: u32,
21 }
22
23 pub struct sockaddr_in {
24 pub sin_len: u8,
25 pub sin_family: ::sa_family_t,
26 pub sin_port: ::in_port_t,
27 pub sin_addr: ::in_addr,
28 pub sin_zero: [::c_char; 8],
29 }
30}
31
32pub const POLLOUT: ::c_short = 0x4;
33pub const POLLHUP: ::c_short = 0x10;