Home
last modified time | relevance | path

Searched refs:with_nix_path (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/nix/src/
Dlib.rs171 fn with_nix_path<T, F>(&self, f: F) -> Result<T> in with_nix_path() method
184 fn with_nix_path<T, F>(&self, f: F) -> Result<T> in with_nix_path() method
186 OsStr::new(self).with_nix_path(f) in with_nix_path()
199 fn with_nix_path<T, F>(&self, f: F) -> Result<T> in with_nix_path() method
201 self.as_bytes().with_nix_path(f) in with_nix_path()
214 fn with_nix_path<T, F>(&self, f: F) -> Result<T> in with_nix_path() method
234 fn with_nix_path<T, F>(&self, f: F) -> Result<T> in with_nix_path() method
265 fn with_nix_path<T, F>(&self, f: F) -> Result<T> where F: FnOnce(&CStr) -> T { in with_nix_path() method
266 self.as_os_str().with_nix_path(f) in with_nix_path()
279 fn with_nix_path<T, F>(&self, f: F) -> Result<T> where F: FnOnce(&CStr) -> T { in with_nix_path() method
[all …]
Dmount.rs69 Some(path) => path.with_nix_path(|p_str| f(p_str.as_ptr())), in mount()
75 target.with_nix_path(|t| { in mount()
96 let res = target.with_nix_path(|cstr| { in umount()
104 let res = target.with_nix_path(|cstr| { in umount2()
Dunistd.rs415 let res = path.with_nix_path(|cstr| { in chdir()
466 let res = path.with_nix_path(|cstr| { in mkdir()
507 let res = path.with_nix_path(|cstr| { in mkfifo()
529 let res = path.with_nix_path(|cstr| unsafe { in mkfifoat()
551 path1.with_nix_path(|path1| { in symlinkat()
552 path2.with_nix_path(|path2| { in symlinkat()
647 let res = path.with_nix_path(|cstr| { in chown()
710 let res = path.with_nix_path(|cstr| unsafe { in fchownat()
1101 let res = path.with_nix_path(|cstr| { in truncate()
1169 oldpath.with_nix_path(|oldcstr| { in linkat()
[all …]
Dfcntl.rs167 let fd = path.with_nix_path(|cstr| { in open()
183 let fd = path.with_nix_path(|cstr| { in openat()
196 let res = old_path.with_nix_path(|old_cstr| { in renameat()
197 new_path.with_nix_path(|new_cstr| unsafe { in renameat()
220 path.with_nix_path(|cstr| unsafe { in readlink_maybe_at()
/external/rust/crates/nix/src/sys/
Dstat.rs45 let res = path.with_nix_path(|cstr| { in mknod()
81 let res = path.with_nix_path(|cstr| { in stat()
94 let res = path.with_nix_path(|cstr| { in lstat()
117 let res = pathname.with_nix_path(|cstr| { in fstatat()
172 let res = path.with_nix_path(|cstr| unsafe { in fchmodat()
196 let res = path.with_nix_path(|cstr| unsafe { in utimes()
221 let res = path.with_nix_path(|cstr| unsafe { in lutimes()
278 let res = path.with_nix_path(|cstr| unsafe { in utimensat()
292 let res = path.with_nix_path(|cstr| { in mkdirat()
Dquota.rs234 … Some(dev) => dev.with_nix_path(|path| libc::quotactl(cmd.as_int(), path.as_ptr(), id, addr)), in quotactl()
244 quota_file.with_nix_path(|path| { in quotactl_on()
Dmman.rs414 let ret = name.with_nix_path(|cstr| { in shm_open()
430 let ret = name.with_nix_path(|cstr| { in shm_unlink()
Dstatvfs.rs128 let res = path.with_nix_path(|path| in statvfs()
Dinotify.rs139 let res = path.with_nix_path(|cstr| { in add_watch()
Dstatfs.rs457 let res = path.with_nix_path(|path| libc::statfs(path.as_ptr(), stat.as_mut_ptr()))?; in statfs()
/external/rust/crates/nix/src/net/
Dif_.rs11 let if_index = name.with_nix_path(|name| unsafe { libc::if_nametoindex(name.as_ptr()) })?; in if_nametoindex()
/external/rust/crates/nix/src/sys/socket/
Daddr.rs517 path.with_nix_path(|cstr| { in new()