Sha256: 2206eac8ee74951b995e1e80f10bf235cc6b04e0a099f4adefce546378838233

Contents?: true

Size: 744 Bytes

Versions: 15

Compression:

Stored size: 744 Bytes

Contents

use crate::backend::c;
use bitflags::bitflags;

bitflags! {
    /// `O_*` constants for use with [`shm_open`].
    ///
    /// [`shm_open`]: crate:shm::shm_open
    #[repr(transparent)]
    #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
    pub struct ShmOFlags: u32 {
        /// `O_CREAT`
        #[doc(alias = "CREAT")]
        const CREATE = bitcast!(c::O_CREAT);

        /// `O_EXCL`
        const EXCL = bitcast!(c::O_EXCL);

        /// `O_RDONLY`
        const RDONLY = bitcast!(c::O_RDONLY);

        /// `O_RDWR`
        const RDWR = bitcast!(c::O_RDWR);

        /// `O_TRUNC`
        const TRUNC = bitcast!(c::O_TRUNC);

        /// <https://docs.rs/bitflags/*/bitflags/#externally-defined-flags>
        const _ = !0;
    }
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wasmtime-25.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-25.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-25.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-24.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-23.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-22.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-21.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-20.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-20.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/backend/libc/shm/types.rs
wasmtime-18.0.3 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/shm/types.rs
wasmtime-17.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/shm/types.rs
wasmtime-17.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/shm/types.rs
wasmtime-16.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/shm/types.rs
wasmtime-15.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/shm/types.rs
wasmtime-15.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/backend/libc/shm/types.rs