]> git.proxmox.com Git - rustc.git/blame - vendor/libc/src/unix/newlib/arm/mod.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / vendor / libc / src / unix / newlib / arm / mod.rs
CommitLineData
f035d41b 1pub type clock_t = ::c_long;
041b39d2
XL
2pub type c_char = u8;
3pub type wchar_t = u32;
4
5pub type c_long = i32;
6pub type c_ulong = u32;
e74abb32
XL
7
8s! {
9 pub struct sockaddr {
10 pub sa_family: ::sa_family_t,
11 pub sa_data: [::c_char; 14],
12 }
13
14 pub struct sockaddr_in6 {
15 pub sin6_family: ::sa_family_t,
16 pub sin6_port: ::in_port_t,
17 pub sin6_flowinfo: u32,
18 pub sin6_addr: ::in6_addr,
19 pub sin6_scope_id: u32,
20 }
21
22 pub struct sockaddr_in {
23 pub sin_family: ::sa_family_t,
24 pub sin_port: ::in_port_t,
25 pub sin_addr: ::in_addr,
26 pub sin_zero: [u8; 8],
27 }
28
29 pub struct sockaddr_storage {
30 pub ss_family: ::sa_family_t,
31 pub __ss_padding: [u8; 26],
32 }
33}
34
f035d41b
XL
35pub const FIONBIO: ::c_ulong = 1;
36
37pub const POLLIN: ::c_short = 0x1;
38pub const POLLPRI: ::c_short = 0x2;
e74abb32 39pub const POLLHUP: ::c_short = 0x4;
f035d41b
XL
40pub const POLLERR: ::c_short = 0x8;
41pub const POLLOUT: ::c_short = 0x10;
42pub const POLLNVAL: ::c_short = 0x20;
43
44pub const SOL_SOCKET: ::c_int = 65535;