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/freebsd/sys/file.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 / freebsd / sys / file.rs` 46 lines ยท 1393 bytes Raw Blame History 1 //! Header: `sys/file.h` 2 //! 3 //! https://github.com/freebsd/freebsd-src/blob/main/sys/sys/file.h 4 5 use crate::prelude::*; 6 7 pub const DTYPE_NONE: c_int = 0; 8 pub const DTYPE_VNODE: c_int = 1; 9 pub const DTYPE_SOCKET: c_int = 2; 10 pub const DTYPE_PIPE: c_int = 3; 11 pub const DTYPE_FIFO: c_int = 4; 12 pub const DTYPE_KQUEUE: c_int = 5; 13 pub const DTYPE_CRYPTO: c_int = 6; 14 pub const DTYPE_MQUEUE: c_int = 7; 15 pub const DTYPE_SHM: c_int = 8; 16 pub const DTYPE_SEM: c_int = 9; 17 pub const DTYPE_PTS: c_int = 10; 18 pub const DTYPE_DEV: c_int = 11; 19 pub const DTYPE_PROCDESC: c_int = 12; 20 pub const DTYPE_EVENTFD: c_int = 13; 21 pub const DTYPE_TIMERFD: c_int = 14; 22 pub const DTYPE_INOTIFY: c_int = 15; 23 pub const DTYPE_JAILDESC: c_int = 16; 24 25 s! { 26 #[cfg(not(any(freebsd10, freebsd11)))] 27 pub struct xfile { 28 pub xf_size: crate::ksize_t, 29 pub xf_pid: crate::pid_t, 30 pub xf_uid: crate::uid_t, 31 pub xf_fd: c_int, 32 _xf_int_pad1: Padding, 33 pub xf_file: crate::kvaddr_t, 34 pub xf_type: c_short, 35 _xf_short_pad1: Padding, 36 pub xf_count: c_int, 37 pub xf_msgcount: c_int, 38 _xf_int_pad2: Padding, 39 pub xf_offset: crate::off_t, 40 pub xf_data: crate::kvaddr_t, 41 pub xf_vnode: crate::kvaddr_t, 42 pub xf_flag: c_uint, 43 _xf_int_pad3: Padding, 44 _xf_int64_pad: Padding<[i64; 6]>, 45 } 46 }