Sha256: 85520b484cb7c15ab71ea1c368578ea3b7e484d82f8510db92b6ce9f7ca341ae

Contents?: true

Size: 677 Bytes

Versions: 44

Compression:

Stored size: 677 Bytes

Contents

use crate::backend;
use crate::fs::Dev;

/// `makedev(maj, min)`
///
/// # References
///  - [Linux]
///
/// [Linux]: https://man7.org/linux/man-pages/man3/makedev.3.html
#[inline]
pub fn makedev(maj: u32, min: u32) -> Dev {
    backend::fs::makedev::makedev(maj, min)
}

/// `minor(dev)`
///
/// # References
///  - [Linux]
///
/// [Linux]: https://man7.org/linux/man-pages/man3/minor.3.html
#[inline]
pub fn minor(dev: Dev) -> u32 {
    backend::fs::makedev::minor(dev)
}

/// `major(dev)`
///
/// # References
///  - [Linux]
///
/// [Linux]: https://man7.org/linux/man-pages/man3/major.3.html
#[inline]
pub fn major(dev: Dev) -> u32 {
    backend::fs::makedev::major(dev)
}

Version data entries

44 entries across 37 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/rustix-0.38.44/src/fs/makedev.rs
wasmtime-28.0.0 ./ext/cargo-vendor/rustix-0.38.43/src/fs/makedev.rs
wasmtime-27.0.0 ./ext/cargo-vendor/rustix-0.38.41/src/fs/makedev.rs
wasmtime-26.0.0 ./ext/cargo-vendor/rustix-0.38.37/src/fs/makedev.rs
wasmtime-25.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-25.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-25.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-24.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-23.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-22.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-21.0.1 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-20.0.2 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-20.0.0 ./ext/cargo-vendor/rustix-0.38.34/src/fs/makedev.rs
wasmtime-18.0.3 ./ext/cargo-vendor/rustix-0.38.28/src/fs/makedev.rs
wasmtime-17.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/fs/makedev.rs
wasmtime-17.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/fs/makedev.rs
wasmtime-16.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/fs/makedev.rs
wasmtime-15.0.1 ./ext/cargo-vendor/rustix-0.38.28/src/fs/makedev.rs
wasmtime-15.0.0 ./ext/cargo-vendor/rustix-0.38.28/src/fs/makedev.rs
wasmtime-14.0.4 ./ext/cargo-vendor/rustix-0.38.20/src/fs/makedev.rs