(
dirfd: Fd,
path: P,
oflags: OFlags,
create_mode: Mode,
)
| 76 | #[cfg(not(target_os = "redox"))] |
| 77 | #[inline] |
| 78 | pub fn openat<P: path::Arg, Fd: AsFd>( |
| 79 | dirfd: Fd, |
| 80 | path: P, |
| 81 | oflags: OFlags, |
| 82 | create_mode: Mode, |
| 83 | ) -> io::Result<OwnedFd> { |
| 84 | path.into_with_c_str(|path| { |
| 85 | backend::fs::syscalls::openat(dirfd.as_fd(), path, oflags, create_mode) |
| 86 | }) |
| 87 | } |
| 88 | |
| 89 | /// `readlinkat(fd, path)`—Reads the contents of a symlink. |
| 90 | /// |