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-14.0.3 ./ext/cargo-vendor/rustix-0.38.20/src/fs/getpath.rs
wasmtime-14.0.1 ./ext/cargo-vendor/rustix-0.38.20/src/fs/getpath.rs
wasmtime-14.0.0 ./ext/cargo-vendor/rustix-0.38.20/src/fs/getpath.rs
wasmtime-13.0.0 ./ext/cargo-vendor/rustix-0.38.8/src/fs/getpath.rs
wasmtime-13.0.0 ./ext/cargo-vendor/rustix-0.37.23/src/fs/getpath.rs
wasmtime-12.0.1 ./ext/cargo-vendor/rustix-0.38.8/src/fs/getpath.rs
wasmtime-12.0.1 ./ext/cargo-vendor/rustix-0.37.23/src/fs/getpath.rs
wasmtime-12.0.0 ./ext/cargo-vendor/rustix-0.37.23/src/fs/getpath.rs
wasmtime-12.0.0 ./ext/cargo-vendor/rustix-0.38.8/src/fs/getpath.rs
wasmtime-11.0.0 ./ext/cargo-vendor/rustix-0.37.23/src/fs/getpath.rs
wasmtime-11.0.0 ./ext/cargo-vendor/rustix-0.38.8/src/fs/getpath.rs
wasmtime-10.0.1 ./ext/cargo-vendor/rustix-0.37.23/src/fs/getpath.rs
wasmtime-10.0.1 ./ext/cargo-vendor/rustix-0.38.8/src/fs/getpath.rs
wasmtime-10.0.0 ./ext/cargo-vendor/rustix-0.38.8/src/fs/getpath.rs
wasmtime-10.0.0 ./ext/cargo-vendor/rustix-0.37.23/src/fs/getpath.rs
wasmtime-9.0.4 ./ext/cargo-vendor/rustix-0.37.23/src/fs/getpath.rs
wasmtime-9.0.4 ./ext/cargo-vendor/rustix-0.38.8/src/fs/getpath.rs
wasmtime-9.0.1 ./ext/cargo-vendor/rustix-0.37.19/src/fs/getpath.rs
wasmtime-8.0.0 ./ext/cargo-vendor/rustix-0.37.13/src/fs/getpath.rs
wasmtime-8.0.0 ./ext/cargo-vendor/rustix-0.36.12/src/fs/getpath.rs