/external/rust/crates/nix/src/ |
D | lib.rs | 166 pub trait NixPath { interface 175 impl NixPath for str { 177 NixPath::is_empty(OsStr::new(self)) in is_empty() 181 NixPath::len(OsStr::new(self)) in len() 190 impl NixPath for OsStr { 205 impl NixPath for CStr { 225 impl NixPath for [u8] { impl 256 impl NixPath for Path { 258 NixPath::is_empty(self.as_os_str()) in is_empty() 262 NixPath::len(self.as_os_str()) in len() [all …]
|
D | mount.rs | 2 use crate::{Result, NixPath}; 57 pub fn mount<P1: ?Sized + NixPath, P2: ?Sized + NixPath, P3: ?Sized + NixPath, P4: ?Sized + NixPath… in mount() argument 65 where P: ?Sized + NixPath, in mount() argument 95 pub fn umount<P: ?Sized + NixPath>(target: &P) -> Result<()> { in umount() 103 pub fn umount2<P: ?Sized + NixPath>(target: &P, flags: MntFlags) -> Result<()> { in umount2()
|
D | fcntl.rs | 9 use crate::{NixPath, Result}; 166 pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> { in open() 177 pub fn openat<P: ?Sized + NixPath>( in openat() 190 pub fn renameat<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( in renameat() argument 215 fn readlink_maybe_at<P: ?Sized + NixPath>( in readlink_maybe_at() 240 fn inner_readlink<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P) -> Result<OsString> { in inner_readlink() 282 pub fn readlink<P: ?Sized + NixPath>(path: &P) -> Result<OsString> { in readlink() 287 pub fn readlinkat<P: ?Sized + NixPath>(dirfd: RawFd, path: &P) -> Result<OsString> { in readlinkat()
|
D | unistd.rs | 6 use crate::{Error, Result, NixPath}; 414 pub fn chdir<P: ?Sized + NixPath>(path: &P) -> Result<()> { in chdir() 465 pub fn mkdir<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> { in mkdir() 506 pub fn mkfifo<P: ?Sized + NixPath>(path: &P, mode: Mode) -> Result<()> { in mkfifo() 528 pub fn mkfifoat<P: ?Sized + NixPath>(dirfd: Option<RawFd>, path: &P, mode: Mode) -> Result<()> { in mkfifoat() 546 pub fn symlinkat<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( in symlinkat() argument 646 pub fn chown<P: ?Sized + NixPath>(path: &P, owner: Option<Uid>, group: Option<Gid>) -> Result<()> { in chown() 698 pub fn fchownat<P: ?Sized + NixPath>( in fchownat() 1100 pub fn truncate<P: ?Sized + NixPath>(path: &P, len: off_t) -> Result<()> { in truncate() 1154 pub fn linkat<P: ?Sized + NixPath>( in linkat() [all …]
|
D | dir.rs | 1 use crate::{Error, NixPath, Result}; 35 pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, in open() 42 pub fn openat<P: ?Sized + NixPath>(dirfd: RawFd, path: &P, oflag: OFlag, in openat()
|
/external/rust/crates/nix/src/sys/ |
D | stat.rs | 4 use crate::{Result, NixPath, errno::Errno}; 44 pub fn mknod<P: ?Sized + NixPath>(path: &P, kind: SFlag, perm: Mode, dev: dev_t) -> Result<()> { in mknod() 79 pub fn stat<P: ?Sized + NixPath>(path: &P) -> Result<FileStat> { in stat() 92 pub fn lstat<P: ?Sized + NixPath>(path: &P) -> Result<FileStat> { in lstat() 115 pub fn fstatat<P: ?Sized + NixPath>(dirfd: RawFd, pathname: &P, f: AtFlags) -> Result<FileStat> { in fstatat() 161 pub fn fchmodat<P: ?Sized + NixPath>( in fchmodat() 194 pub fn utimes<P: ?Sized + NixPath>(path: &P, atime: &TimeVal, mtime: &TimeVal) -> Result<()> { in utimes() 219 pub fn lutimes<P: ?Sized + NixPath>(path: &P, atime: &TimeVal, mtime: &TimeVal) -> Result<()> { in lutimes() 265 pub fn utimensat<P: ?Sized + NixPath>( in utimensat() 291 pub fn mkdirat<P: ?Sized + NixPath>(fd: RawFd, path: &P, mode: Mode) -> Result<()> { in mkdirat()
|
D | quota.rs | 18 use crate::{Result, NixPath}; 230 fn quotactl<P: ?Sized + NixPath>(cmd: QuotaCmd, special: Option<&P>, id: c_int, addr: *mut c_char) … in quotactl() 243 pub fn quotactl_on<P: ?Sized + NixPath>(which: QuotaType, special: &P, format: QuotaFmt, quota_file… in quotactl_on() 252 pub fn quotactl_off<P: ?Sized + NixPath>(which: QuotaType, special: &P) -> Result<()> { in quotactl_off() 259 pub fn quotactl_sync<P: ?Sized + NixPath>(which: QuotaType, special: Option<&P>) -> Result<()> { in quotactl_sync() 264 pub fn quotactl_get<P: ?Sized + NixPath>(which: QuotaType, special: &P, id: c_int) -> Result<Dqblk>… in quotactl_get() 271 pub fn quotactl_set<P: ?Sized + NixPath>(which: QuotaType, special: &P, id: c_int, dqblk: &Dqblk, f… in quotactl_set()
|
D | statvfs.rs | 10 use crate::{Result, NixPath, errno::Errno}; 124 pub fn statvfs<P: ?Sized + NixPath>(path: &P) -> Result<Statvfs> { in statvfs()
|
D | inotify.rs | 37 use crate::NixPath; 134 pub fn add_watch<P: ?Sized + NixPath>(self, in add_watch()
|
D | mman.rs | 3 use crate::NixPath; 413 pub fn shm_open<P: ?Sized + NixPath>(name: &P, flag: OFlag, mode: Mode) -> Result<RawFd> { in shm_open() 429 pub fn shm_unlink<P: ?Sized + NixPath>(name: &P) -> Result<()> { in shm_unlink()
|
D | statfs.rs | 7 use crate::{NixPath, Result, errno::Errno}; 454 pub fn statfs<P: ?Sized + NixPath>(path: &P) -> Result<Statfs> { in statfs()
|
/external/rust/crates/nix/src/net/ |
D | if_.rs | 7 use crate::{Result, Error, NixPath}; 10 pub fn if_nametoindex<P: ?Sized + NixPath>(name: &P) -> Result<c_uint> { in if_nametoindex()
|
/external/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 2 use crate::{Error, Result, NixPath}; 516 pub fn new<P: ?Sized + NixPath>(path: &P) -> Result<UnixAddr> { in new() 660 pub fn new_unix<P: ?Sized + NixPath>(path: &P) -> Result<SockAddr> { in new_unix()
|
/external/rust/crates/nix/ |
D | CHANGELOG.md | 160 - Nix no longer implements `NixPath` for `Option<P> where P: NixPath`. Most 161 Nix functions that accept `NixPath` arguments can't do anything useful with 214 - Added `NixPath::is_empty`.
|