Home
last modified time | relevance | path

Searched refs:OFlag (Results 1 – 13 of 13) sorted by relevance

/third_party/rust/crates/nix/test/
Dtest_dir.rs2 use nix::fcntl::OFlag;
8 fn flags() -> OFlag { in flags()
10 let f = OFlag::O_RDONLY | OFlag::O_CLOEXEC; in flags()
13 let f = OFlag::O_RDONLY | OFlag::O_CLOEXEC | OFlag::O_DIRECTORY; in flags()
Dtest_pty.rs8 use nix::fcntl::{open, OFlag};
19 let m = posix_openpt(OFlag::O_RDWR).unwrap(); in test_explicit_close()
35 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_equivalence()
52 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_copy()
69 let master_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_r_copy()
86 let master1_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_unique()
90 let master2_fd = posix_openpt(OFlag::O_RDWR).unwrap(); in test_ptsname_unique()
104 let master = posix_openpt(OFlag::O_RDWR).expect("posix_openpt failed"); in open_ptty_pair()
115 open(Path::new(&slave_name), OFlag::O_RDWR, stat::Mode::empty()) in open_ptty_pair()
Dtest_fcntl.rs4 use nix::fcntl::{open, readlink, OFlag};
42 open(tmp.path().parent().unwrap(), OFlag::empty(), Mode::empty()) in test_openat()
47 OFlag::O_RDONLY, in test_openat()
65 open(old_dir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_renameat()
70 open(new_dir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_renameat()
95 open(old_dir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
100 open(new_dir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_renameat2_behaves_like_renameat_with_no_flags()
139 open(old_dir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_renameat2_exchange()
147 open(new_dir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_renameat2_exchange()
187 open(old_dir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_renameat2_noreplace()
[all …]
Dtest_stat.rs117 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()); in test_fstatat()
181 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_fchmodat()
275 let fd = fcntl::open(&fullpath, fcntl::OFlag::empty(), stat::Mode::empty()) in test_futimens()
292 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_utimensat()
324 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_mkdirat_success_path()
338 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_mkdirat_success_mode()
356 fcntl::OFlag::O_CREAT, in test_mkdirat_fail()
396 use fcntl::{AtFlags, OFlag}; in test_mknodat()
403 Dir::open(tempdir.path(), OFlag::O_DIRECTORY, Mode::S_IRWXU).unwrap(); in test_mknodat()
Dtest_unistd.rs5 use nix::fcntl::OFlag;
160 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat()
198 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_mkfifoat_directory()
541 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_fchownat()
751 let (fd0, fd1) = pipe2(OFlag::O_CLOEXEC).unwrap(); in test_pipe2()
882 let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); in test_symlinkat()
910 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_linkat_file()
944 fcntl::OFlag::empty(), in test_linkat_olddirfd_none()
981 fcntl::OFlag::empty(), in test_linkat_newdirfd_none()
1027 fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()) in test_linkat_no_follow_symlink()
[all …]
Dtest_ptymaster_drop.rs3 use nix::fcntl::OFlag;
16 let m = posix_openpt(OFlag::O_RDWR).unwrap(); in test_double_close()
/third_party/rust/crates/nix/src/
Ddir.rs4 use crate::fcntl::{self, OFlag};
38 oflag: OFlag, in open() argument
49 oflag: OFlag, in openat() argument
Dfcntl.rs47 pub struct OFlag: c_int {
196 pub fn open<P: ?Sized + NixPath>(path: &P, oflag: OFlag, mode: Mode) -> Result<RawFd> {
210 oflag: OFlag,
420 F_SETFL(OFlag), // O_NONBLOCK
452 F_SETFL(OFlag), // O_NONBLOCK
Dpty.rs160 pub fn posix_openpt(flags: fcntl::OFlag) -> Result<PtyMaster> { in posix_openpt()
Dunistd.rs8 use crate::fcntl::{fcntl, FcntlArg::F_SETFD, FdFlag, OFlag};
452 pub fn dup3(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> {
457 fn dup3_polyfill(oldfd: RawFd, newfd: RawFd, flags: OFlag) -> Result<RawFd> {
464 if flags.contains(OFlag::O_CLOEXEC) {
1181 pub fn pipe2(flags: OFlag) -> Result<(RawFd, RawFd)> {
/third_party/rust/crates/nix/test/sys/
Dtest_termios.rs123 fcntl::OFlag::from_bits_truncate(flags) | fcntl::OFlag::O_NONBLOCK; in test_local_flags()
Dtest_socket.rs924 use nix::fcntl::{fcntl, FcntlArg, OFlag}; in test_af_alg_aead()
1021 fcntl(session_socket, FcntlArg::F_SETFL(OFlag::O_NONBLOCK)) in test_af_alg_aead()
/third_party/rust/crates/nix/src/sys/
Dmman.rs9 use crate::{fcntl::OFlag, sys::stat::Mode};
568 flag: OFlag,