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 / 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
5use crate::prelude::*;
6
7pub const DTYPE_NONE: c_int = 0;
8pub const DTYPE_VNODE: c_int = 1;
9pub const DTYPE_SOCKET: c_int = 2;
10pub const DTYPE_PIPE: c_int = 3;
11pub const DTYPE_FIFO: c_int = 4;
12pub const DTYPE_KQUEUE: c_int = 5;
13pub const DTYPE_CRYPTO: c_int = 6;
14pub const DTYPE_MQUEUE: c_int = 7;
15pub const DTYPE_SHM: c_int = 8;
16pub const DTYPE_SEM: c_int = 9;
17pub const DTYPE_PTS: c_int = 10;
18pub const DTYPE_DEV: c_int = 11;
19pub const DTYPE_PROCDESC: c_int = 12;
20pub const DTYPE_EVENTFD: c_int = 13;
21pub const DTYPE_TIMERFD: c_int = 14;
22pub const DTYPE_INOTIFY: c_int = 15;
23pub const DTYPE_JAILDESC: c_int = 16;
24
25s! {
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<c_int>,
33 pub xf_file: crate::kvaddr_t,
34 pub xf_type: c_short,
35 _xf_short_pad1: Padding<c_short>,
36 pub xf_count: c_int,
37 pub xf_msgcount: c_int,
38 _xf_int_pad2: Padding<c_int>,
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<c_int>,
44 _xf_int64_pad: Padding<[i64; 6]>,
45 }
46}