/third_party/rust/crates/nix/src/ |
D | lib.rs | 181 pub trait NixPath { trait 196 impl NixPath for str { 198 NixPath::is_empty(OsStr::new(self)) in is_empty() 202 NixPath::len(OsStr::new(self)) in len() 213 impl NixPath for OsStr { 230 impl NixPath for CStr { 247 impl NixPath for [u8] { impl 301 impl NixPath for Path { 303 NixPath::is_empty(self.as_os_str()) in is_empty() 307 NixPath::len(self.as_os_str()) in len() [all …]
|
D | fcntl.rs | 10 use crate::{sys::stat::Mode, NixPath, Result}; 196 pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> { 207 pub fn openat<P: ?Sized + NixPath>( 220 pub fn renameat<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( 257 pub fn renameat2<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( 284 fn readlink_maybe_at<P: ?Sized + NixPath>( 309 fn inner_readlink<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P) -> Result<OsString> { 362 pub fn readlink<P: ?Sized + NixPath>(path: &P) -> Result<OsString> { 367 pub fn readlinkat<P: ?Sized + NixPath>(dirfd: RawFd, path: &P) -> Result<OsString> {
|
D | unistd.rs | 23 use crate::{Error, NixPath, Result}; 480 pub fn chdir<P: ?Sized + NixPath>(path: &P) -> Result<()> { 529 pub fn mkdir<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> { 568 pub fn mkfifo<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> { 590 pub fn mkfifoat<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P, mode: Mode) -> Result<()> { 608 pub fn symlinkat<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( 717 pub fn chown<P: ?Sized + NixPath>(path: &P, owner: Option<Uid>, group: Option<Gid>) -> Result<()> { 769 pub fn fchownat<P: ?Sized + NixPath>( 1198 pub fn truncate<P: ?Sized + NixPath>(path: &P, len: off_t) -> Result<()> { 1252 pub fn linkat<P: ?Sized + NixPath>( [all …]
|
D | dir.rs | 6 use crate::{Error, NixPath, Result}; 36 pub fn open<P: ?Sized + NixPath>( in open() 46 pub fn openat<P: ?Sized + NixPath>( in openat()
|
/third_party/rust/crates/nix/src/mount/ |
D | linux.rs | 3 use crate::{NixPath, Result}; 61 P1: ?Sized + NixPath, in mount() argument 62 P2: ?Sized + NixPath, in mount() argument 63 P3: ?Sized + NixPath, in mount() argument 64 P4: ?Sized + NixPath, in mount() argument 74 P: ?Sized + NixPath, in mount() argument 102 pub fn umount<P: ?Sized + NixPath>(target: &P) -> Result<()> { in umount() 109 pub fn umount2<P: ?Sized + NixPath>(target: &P, flags: MntFlags) -> Result<()> { in umount2()
|
D | bsd.rs | 3 use crate::{Errno, NixPath, Result}; 239 fn push_nix_path<P: ?Sized + NixPath>(&mut self, val: &P) { in push_nix_path() 320 pub fn null_opt_owned<P: ?Sized + NixPath>( in null_opt_owned() 364 P1: ?Sized + NixPath, in str_opt_owned() argument 365 P2: ?Sized + NixPath, in str_opt_owned() argument 446 P: ?Sized + NixPath, in unmount()
|
/third_party/rust/crates/nix/src/sys/ |
D | stat.rs | 15 use crate::{errno::Errno, NixPath, Result}; 173 pub fn mknod<P: ?Sized + NixPath>( in mknod() 194 pub fn mknodat<P: ?Sized + NixPath>( in mknodat() 239 pub fn stat<P: ?Sized + NixPath>(path: &P) -> Result<FileStat> { in stat() 250 pub fn lstat<P: ?Sized + NixPath>(path: &P) -> Result<FileStat> { in lstat() 272 pub fn fstatat<P: ?Sized + NixPath>( in fstatat() 328 pub fn fchmodat<P: ?Sized + NixPath>( in fchmodat() 360 pub fn utimes<P: ?Sized + NixPath>( in utimes() 392 pub fn lutimes<P: ?Sized + NixPath>( in lutimes() 444 pub fn utimensat<P: ?Sized + NixPath>( in utimensat() [all …]
|
D | quota.rs | 16 use crate::{NixPath, Result}; 240 fn quotactl<P: ?Sized + NixPath>( in quotactl() 260 pub fn quotactl_on<P: ?Sized + NixPath>( in quotactl_on() 279 pub fn quotactl_off<P: ?Sized + NixPath>( in quotactl_off() 294 pub fn quotactl_sync<P: ?Sized + NixPath>( in quotactl_sync() 307 pub fn quotactl_get<P: ?Sized + NixPath>( in quotactl_get() 323 pub fn quotactl_set<P: ?Sized + NixPath>( in quotactl_set()
|
D | inotify.rs | 28 use crate::NixPath; 154 pub fn add_watch<P: ?Sized + NixPath>( in add_watch()
|
D | statvfs.rs | 10 use crate::{errno::Errno, NixPath, Result}; 136 pub fn statvfs<P: ?Sized + NixPath>(path: &P) -> Result<Statvfs> { in statvfs()
|
D | mman.rs | 5 use crate::NixPath; 571 where P: ?Sized + NixPath 594 pub fn shm_unlink<P: ?Sized + NixPath>(name: &P) -> Result<()> { in shm_unlink()
|
D | statfs.rs | 25 use crate::{errno::Errno, NixPath, Result}; 729 pub fn statfs<P: ?Sized + NixPath>(path: &P) -> Result<Statfs> { in statfs()
|
/third_party/rust/crates/nix/src/net/ |
D | if_.rs | 6 use crate::{Error, NixPath, Result}; 10 pub fn if_nametoindex<P: ?Sized + NixPath>(name: &P) -> Result<c_uint> { in if_nametoindex()
|
/third_party/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 29 use crate::{NixPath, Result}; 814 pub fn new<P: ?Sized + NixPath>(path: &P) -> Result<UnixAddr> { in new() 2036 pub fn new_unix<P: ?Sized + NixPath>(path: &P) -> Result<SockAddr> { in new_unix()
|
/third_party/rust/crates/nix/ |
D | CHANGELOG.md | 681 - Nix no longer implements `NixPath` for `Option<P> where P: NixPath`. Most 682 Nix functions that accept `NixPath` arguments can't do anything useful with 729 - Added `NixPath::is_empty`.
|