rustix/backend/linux_raw/event/
types.rs

1use crate::ffi;
2use bitflags::bitflags;
3
4bitflags! {
5    /// `EFD_*` flags for use with [`eventfd`].
6    ///
7    /// [`eventfd`]: crate::event::eventfd
8    #[repr(transparent)]
9    #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
10    pub struct EventfdFlags: ffi::c_uint {
11        /// `EFD_CLOEXEC`
12        const CLOEXEC = linux_raw_sys::general::EFD_CLOEXEC;
13        /// `EFD_NONBLOCK`
14        const NONBLOCK = linux_raw_sys::general::EFD_NONBLOCK;
15        /// `EFD_SEMAPHORE`
16        const SEMAPHORE = linux_raw_sys::general::EFD_SEMAPHORE;
17
18        /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>
19        const _ = !0;
20    }
21}