Debian Codegraph @

third_party/rust/libc/src/unix/newlib/aarch64/mod.rs

raw
1 use crate::prelude::*;
2
3 pub type clock_t = c_long;
4 pub type wchar_t = u32;
5
6 s! {
7 pub struct sockaddr {
8 pub sa_len: u8,
9 pub sa_family: crate::sa_family_t,
10 pub sa_data: [c_char; 14],
11 }
12
13 pub struct sockaddr_in6 {
14 pub sin6_len: u8,
15 pub sin6_family: crate::sa_family_t,
16 pub sin6_port: crate::in_port_t,
17 pub sin6_flowinfo: u32,
18 pub sin6_addr: crate::in6_addr,
19 pub sin6_scope_id: u32,
20 }
21
22 pub struct sockaddr_in {
23 pub sin_len: u8,
24 pub sin_family: crate::sa_family_t,
25 pub sin_port: crate::in_port_t,
26 pub sin_addr: crate::in_addr,
27 pub sin_zero: [c_char; 8],
28 }
29 }
30
31 pub const AF_INET6: c_int = 23;
32
33 pub const FIONBIO: c_ulong = 1;
34
35 pub const POLLIN: c_short = 0x1;
36 pub const POLLPRI: c_short = 0x2;
37 pub const POLLOUT: c_short = 0x4;
38 pub const POLLERR: c_short = 0x8;
39 pub const POLLHUP: c_short = 0x10;
40 pub const POLLNVAL: c_short = 0x20;
41
42 pub const SOL_SOCKET: c_int = 65535;
43
44 pub const MSG_OOB: c_int = 1;
45 pub const MSG_PEEK: c_int = 2;
46 pub const MSG_DONTWAIT: c_int = 4;
47 pub const MSG_DONTROUTE: c_int = 0;
48 pub const MSG_WAITALL: c_int = 0;
49 pub const MSG_MORE: c_int = 0;
50 pub const MSG_NOSIGNAL: c_int = 0;
51
52 pub use crate::unix::newlib::generic::{dirent, sigset_t, stat};