interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / src / unix / newlib / aarch64 / mod.rs

56 lines · 1312 bytes Raw Blame History
1use crate::prelude::*;
2
3pub type clock_t = c_long;
4pub type wchar_t = u32;
5
6s! {
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
31pub const AF_INET6: c_int = 23;
32
33pub const FIONBIO: c_ulong = 1;
34
35pub const POLLIN: c_short = 0x1;
36pub const POLLPRI: c_short = 0x2;
37pub const POLLOUT: c_short = 0x4;
38pub const POLLERR: c_short = 0x8;
39pub const POLLHUP: c_short = 0x10;
40pub const POLLNVAL: c_short = 0x20;
41
42pub const SOL_SOCKET: c_int = 65535;
43
44pub const MSG_OOB: c_int = 1;
45pub const MSG_PEEK: c_int = 2;
46pub const MSG_DONTWAIT: c_int = 4;
47pub const MSG_DONTROUTE: c_int = 0;
48pub const MSG_WAITALL: c_int = 0;
49pub const MSG_MORE: c_int = 0;
50pub const MSG_NOSIGNAL: c_int = 0;
51
52pub use crate::unix::newlib::generic::{
53 dirent,
54 sigset_t,
55 stat,
56};