Skip to main content

Module unix

Module unix 

Source

Re-exportsยง

use libc::dirent64; ๐Ÿ”’
use libc::fstat64; ๐Ÿ”’
use libc::ftruncate64; ๐Ÿ”’
use libc::lseek64; ๐Ÿ”’
use libc::lstat64; ๐Ÿ”’
use libc::off64_t; ๐Ÿ”’
use libc::open64; ๐Ÿ”’
use libc::stat64; ๐Ÿ”’
use libc::stat64; ๐Ÿ”’
use libc::c_char; ๐Ÿ”’ GNU and Linux
use libc::c_int; ๐Ÿ”’
use libc::mode_t; ๐Ÿ”’
use crate::ffi::CStr; ๐Ÿ”’
use crate::ffi::OsStr; ๐Ÿ”’
use crate::ffi::OsString; ๐Ÿ”’
use crate::fmt; ๐Ÿ”’
use crate::fmt::Write as _; ๐Ÿ”’
use crate::fs::TryLockError; ๐Ÿ”’
use crate::io; ๐Ÿ”’
use crate::io::BorrowedCursor; ๐Ÿ”’ Experimental
use crate::io::Error; ๐Ÿ”’
use crate::io::IoSlice; ๐Ÿ”’
use crate::io::IoSliceMut; ๐Ÿ”’
use crate::io::SeekFrom; ๐Ÿ”’
use crate::os::fd::AsFd; ๐Ÿ”’
use crate::os::fd::AsRawFd; ๐Ÿ”’
use crate::os::fd::BorrowedFd; ๐Ÿ”’
use crate::os::fd::FromRawFd; ๐Ÿ”’
use crate::os::fd::IntoRawFd; ๐Ÿ”’
pub use crate::os::unix::fs::dirs::ExtraHomeDirs;Non-WASI
pub use crate::os::unix::fs::dirs::ExtraMediaDirs;Non-WASI
use crate::path::Path; ๐Ÿ”’
use crate::path::PathBuf; ๐Ÿ”’
use crate::sync::Arc; ๐Ÿ”’
use crate::sys::fd::FileDesc; ๐Ÿ”’ Experimental
pub use crate::sys::fs::common::exists;
use crate::sys::helpers::run_path_with_cstr; ๐Ÿ”’
use crate::sys::time::SystemTime; ๐Ÿ”’
use crate::sys::weak::syscall; ๐Ÿ”’ Android or Linux
use crate::sys::AsInner; ๐Ÿ”’
use crate::sys::AsInnerMut; ๐Ÿ”’
use crate::sys::FromInner; ๐Ÿ”’
use crate::sys::IntoInner; ๐Ÿ”’
use crate::sys::cvt; ๐Ÿ”’
use crate::sys::cvt_r; ๐Ÿ”’
use crate::mem; ๐Ÿ”’
use crate::ptr; ๐Ÿ”’
pub use dir::Dir;
pub(in sys) use cfm::CachedFileMetadata; ๐Ÿ”’ Android or Linux
pub use remove_dir_impl::remove_dir_all;
use crate::os::unix::prelude::*; ๐Ÿ”’ target_family=unix

Modulesยง

cfm ๐Ÿ”’
dir ๐Ÿ”’
remove_dir_impl ๐Ÿ”’ Neither miri nor ESP-IDF nor Horizon nor L4Re nor Play Station Vita nor QNX SDP 7.x nor QNX SDP 8.0+ nor Redox OS nor VxWorks
runtime_symbols ๐Ÿ”’

Macrosยง

cfg_has_statx ๐Ÿ”’

Structsยง

DirBuilder
DirEntry
DirStream ๐Ÿ”’
File
FileAttr
FilePermissions
FileTimes
FileType
InnerReadDir ๐Ÿ”’
Mode ๐Ÿ”’
OpenOptions
ReadDir
StatxExtraFields ๐Ÿ”’
dirent64_min ๐Ÿ”’

Functionsยง

canonicalize
chownNon-WASI
chrootNeither Fuchsia nor VxWorks nor WASI
copyNon-Apple
debug_assert_fd_is_open ๐Ÿ”’
Aborts the process if a file descriptor is not open, if debug asserts are enabled
debug_path_fd ๐Ÿ”’
fchownNon-WASI
file_time_to_timespec ๐Ÿ”’ Neither ESP-IDF nor Horizon nor NuttX nor Redox OS
get_path_from_fd ๐Ÿ”’
lchownNeither VxWorks nor WASI
link
link_then_unlink ๐Ÿ”’
lstat
mkfifoNon-WASI
open_from ๐Ÿ”’
open_to_and_set_permissions ๐Ÿ”’ Neither ESP-IDF nor WASI
readdir
readlink
rename
rename_noreplaceAndroid or Linux
rmdir
set_perm
set_perm_nofollowNon-VxWorks
set_times
set_times_impl ๐Ÿ”’
set_times_nofollow
stat
symlink
try_statx ๐Ÿ”’ โš 
unlink