Home
last modified time | relevance | path

Searched refs:proc_self_fd (Results 1 - 6 of 6) sorted by relevance

/third_party/rust/crates/rustix/tests/io/
H A Dprocfs.rs6 let fd = rustix::io::proc_self_fd().unwrap(); in test_proc_self()
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/
H A Dsyscalls.rs229 let proc_self_fd = io::proc_self_fd()?;
231 // Gather the ttyname by reading the 'fd' file inside 'proc_self_fd'.
233 super::super::fs::syscalls::readlinkat(proc_self_fd, DecInt::from_fd(fd).as_c_str(), buf)?;
/third_party/rust/crates/rustix/src/io/
H A Dmod.rs79 proc_self_fd, proc_self_fdinfo_fd, proc_self_maps, proc_self_pagemap, proc_self_status,
H A Dprocfs.rs270 pub fn proc_self_fd() -> io::Result<BorrowedFd<'static>> { in proc_self_fd() functions
281 let proc_self_fd = proc_opendirat(proc_self, cstr!("fd"))?;
283 check_proc_entry(Kind::Fd, proc_self_fd.as_fd(), Some(proc_stat))
286 Ok(new_static_fd(proc_self_fd, proc_self_fd_stat))
/third_party/musl/porting/linux/user/ldso/
H A Ddynlink.c5113 char proc_self_fd[32]; in resolve_fd_to_realpath() local
5116 int ret = snprintf(proc_self_fd, sizeof(proc_self_fd), "/proc/self/fd/%d", task->fd); in resolve_fd_to_realpath()
5117 if (ret < 0 || ret >= sizeof(proc_self_fd)) { in resolve_fd_to_realpath()
5120 ssize_t len = readlink(proc_self_fd, resolved_path, sizeof(resolved_path) - 1); in resolve_fd_to_realpath()
/third_party/musl/ldso/linux/
H A Ddynlink.c5502 char proc_self_fd[32]; in resolve_fd_to_realpath() local
5505 int ret = snprintf(proc_self_fd, sizeof(proc_self_fd), "/proc/self/fd/%d", task->fd); in resolve_fd_to_realpath()
5506 if (ret < 0 || ret >= sizeof(proc_self_fd)) { in resolve_fd_to_realpath()
5509 ssize_t len = readlink(proc_self_fd, resolved_path, sizeof(resolved_path) - 1); in resolve_fd_to_realpath()

Completed in 18 milliseconds