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/new/netbsd/sys/socket.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 / new / netbsd / sys / socket.rs` 44 lines ยท 1123 bytes Raw Blame History 1 //! Header: `sys/socket.h` 2 //! 3 //! 4 //! 5 6 use crate::prelude::*; 7 8 s_no_extra_traits! { 9 pub union __c_anonymous_pcb_sockaddr_src { 10 pub _kis_src: crate::sockaddr, 11 _kis_pad: Padding<[c_char; 256 + 8]>, 12 } 13 14 pub union __c_anonymous_pcb_sockaddr_dst { 15 pub _kid_dst: crate::sockaddr, 16 _kid_pad: Padding<[c_char; 256 + 8]>, 17 } 18 19 pub struct kinfo_pcb { 20 pub ki_pcbaddr: u64, 21 pub ki_ppcbaddr: u64, 22 pub ki_sockaddr: u64, 23 pub ki_family: u32, 24 pub ki_type: u32, 25 pub ki_protocol: u32, 26 pub ki_pflags: u32, 27 pub ki_sostate: u32, 28 pub ki_prstate: u32, 29 pub ki_tstate: i32, 30 pub ki_tflags: u32, 31 pub ki_rcvq: u64, 32 pub ki_sndq: u64, 33 pub ki_s: __c_anonymous_pcb_sockaddr_src, 34 pub ki_d: __c_anonymous_pcb_sockaddr_dst, 35 pub ki_inode: u64, 36 pub ki_vnode: u64, 37 pub ki_conn: u64, 38 pub ki_refs: u64, 39 pub ki_nextref: u64, 40 } 41 } 42 43 pub const PCB_SLOP: c_int = 20; 44 pub const PCB_ALL: c_int = 0;