Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/libc/src/unix/newlib/aarch64/mod.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / libc / src / unix / newlib / aarch64 / mod.rs` 56 lines ยท 1312 bytes Raw Blame History 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::{ 53 dirent, 54 sigset_t, 55 stat, 56 };