Debian Codegraph @

debian/rust-vendor/libc/src/new/freebsd/sys/file.rs

raw
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<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 }