Sha256: 28f6970fc1bbc37bb35c84724b59eac436ea7407a4522e18c2bdacb1fdd2edd9

Contents?: true

Size: 384 Bytes

Versions: 47

Compression:

Stored size: 384 Bytes

Contents

use crate::ffi::CString;
use crate::{backend, io};
use backend::fd::AsFd;

/// `fcntl(fd, F_GETPATH)`
///
/// # References
///  - [Apple]
///
/// [Apple]: https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html
#[inline]
pub fn getpath<Fd: AsFd>(fd: Fd) -> io::Result<CString> {
    backend::fs::syscalls::getpath(fd.as_fd())
}

Version data entries

47 entries across 38 versions & 1 rubygems

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