Home
last modified time | relevance | path

Searched refs:from_fd (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/nix/src/
Ddir.rs38 Dir::from_fd(fd) in open()
45 Dir::from_fd(fd) in openat()
51 Dir::from_fd(fd.into_raw_fd()) in from()
55 pub fn from_fd(fd: RawFd) -> Result<Self> { in from_fd() method
/external/crosvm/sys_util/src/
Dshm.rs407 MemoryMapping::from_fd(&shm, shm.size() as usize).expect("failed to map shared memory"); in mmap_page()
409 MemoryMapping::from_fd(&shm, shm.size() as usize).expect("failed to map shared memory"); in mmap_page()
438 MemoryMapping::from_fd(&shm, shm.size() as usize).expect("failed to map shared memory"); in mmap_page_offset()
Dmmap.rs242 pub fn from_fd(fd: &dyn AsRawFd, size: usize) -> Result<MemoryMapping> { in from_fd() method
970 let res = MemoryMapping::from_fd(&fd, 1024).unwrap_err(); in map_invalid_fd()
/external/rust/crates/nix/test/
Dtest_dir.rs44 assert_eq!(Dir::from_fd(-1).unwrap_err(), nix::Error::Sys(nix::errno::Errno::EBADF)); in ebadf()
/external/rust/crates/nix/test/sys/
Dtest_aio.rs104 let mut aiocb = AioCb::from_fd( f.as_raw_fd(), in test_fsync()
127 let mut aiocb = AioCb::from_fd( f.as_raw_fd(), in test_fsync_error()
/external/llvm-project/libcxx/src/filesystem/
Doperations.cpp725 FileDescriptor from_fd = in __copy_file() local
730 auto from_st = from_fd.get_status(); in __copy_file()
731 StatT const& from_stat = from_fd.get_stat(); in __copy_file()
800 if (!copy_file_impl(from_fd, to_fd, m_ec)) { in __copy_file()
/external/libcxx/src/filesystem/
Doperations.cpp738 FileDescriptor from_fd = in __copy_file() local
743 auto from_st = from_fd.get_status(); in __copy_file()
744 StatT const& from_stat = from_fd.get_stat(); in __copy_file()
813 if (!copy_file_impl(from_fd, to_fd, m_ec)) { in __copy_file()
/external/python/cpython3/Lib/test/
Dtest_subprocess.py2461 for from_fd in from_fds:
2463 os.dup2(f.fileno(), from_fd)
2470 for from_fd, to_fd in zip(from_fds, to_fds):
2471 kwargs[arg_names[to_fd]] = from_fd
2487 for from_fd, to_fd in zip(from_fds, to_fds):
2488 os.lseek(from_fd, 0, os.SEEK_SET)
2489 read_bytes = os.read(from_fd, 1024)
/external/rust/crates/nix/src/sys/
Daio.rs245 pub fn from_fd(fd: RawFd, prio: libc::c_int, in from_fd() method