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 / arm / mod.rs

58 lines · 1358 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_family: crate::sa_family_t,
9 pub sa_data: [c_char; 14],
10 }
11
12 pub struct sockaddr_in6 {
13 pub sin6_family: crate::sa_family_t,
14 pub sin6_port: crate::in_port_t,
15 pub sin6_flowinfo: u32,
16 pub sin6_addr: crate::in6_addr,
17 pub sin6_scope_id: u32,
18 }
19
20 pub struct sockaddr_in {
21 pub sin_family: crate::sa_family_t,
22 pub sin_port: crate::in_port_t,
23 pub sin_addr: crate::in_addr,
24 pub sin_zero: [u8; 8],
25 }
26
27 pub struct sockaddr_storage {
28 pub ss_family: crate::sa_family_t,
29 __ss_padding: Padding<[u8; 26]>,
30 }
31}
32
33pub const AF_INET6: c_int = 23;
34
35pub const FIONBIO: c_ulong = 1;
36
37pub const POLLIN: c_short = 0x1;
38pub const POLLPRI: c_short = 0x2;
39pub const POLLHUP: c_short = 0x4;
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;
45
46pub const MSG_OOB: c_int = 1;
47pub const MSG_PEEK: c_int = 2;
48pub const MSG_DONTWAIT: c_int = 4;
49pub const MSG_DONTROUTE: c_int = 0;
50pub const MSG_WAITALL: c_int = 0;
51pub const MSG_MORE: c_int = 0;
52pub const MSG_NOSIGNAL: c_int = 0;
53
54pub use crate::unix::newlib::generic::{
55 dirent,
56 sigset_t,
57 stat,
58};