Lines Matching refs:open

7 use nix::fcntl::{self, open};
160 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap();
198 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap();
406 execve_test_factory!(test_fexecve, fexecve, File::open("/system/bin/sh").unwrap().into_raw_fd());
413 execve_test_factory!(test_fexecve, fexecve, File::open("/bin/sh").unwrap().into_raw_fd());
432 File::open("/system/bin/sh").unwrap().into_raw_fd(),
435 File::open("/system/bin/").unwrap().into_raw_fd(),
438 File::open("/").unwrap().into_raw_fd(),
442 execve_test_factory!(test_execveat_empty, execveat, File::open("/bin/sh").unwrap().into_raw_fd(),
444 execve_test_factory!(test_execveat_relative, execveat, File::open("/bin/").unwrap().into_raw_fd(),
446 execve_test_factory!(test_execveat_absolute, execveat, File::open("/").unwrap().into_raw_fd(),
459 let tmpdir_fd = File::open(&tmpdir_path).unwrap().into_raw_fd();
541 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap();
882 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap();
910 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty())
942 let dirfd = fcntl::open(
979 let dirfd = fcntl::open(
1027 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty())
1070 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty())
1108 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty())
1129 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty())
1149 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty())
1215 // trying to open the temporary file should fail with EACCES
1216 let res = fs::File::open(&temp_path);
1227 // open the temporary file with the current thread filesystem UID
1228 fs::File::open(temp_path_2).unwrap();
1247 let fds = open(Path::new(&sname), OFlag::O_RDWR, stat::Mode::empty())
1248 .expect("open failed");
1258 let fd = File::open("/dev/zero").unwrap();
1331 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap();
1367 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap();