Home
last modified time | relevance | path

Searched refs:FcntlArg (Results 1 - 5 of 5) sorted by relevance

/third_party/rust/crates/nix/test/
H A Dtest_fcntl.rs403 fcntl(fd, FcntlArg::F_OFD_SETLKW(&flock)).expect("write lock failed"); in test_ofd_write_lock()
410 fcntl(fd, FcntlArg::F_OFD_SETLKW(&flock)).expect("write unlock failed"); in test_ofd_write_lock()
441 fcntl(fd, FcntlArg::F_OFD_SETLKW(&flock)).expect("read lock failed"); in test_ofd_read_lock()
448 fcntl(fd, FcntlArg::F_OFD_SETLKW(&flock)).expect("read unlock failed"); in test_ofd_read_lock()
H A Dtest_unistd.rs749 use nix::fcntl::{fcntl, FcntlArg, FdFlag}; in test_pipe2()
752 let f0 = FdFlag::from_bits_truncate(fcntl(fd0, FcntlArg::F_GETFD).unwrap()); in test_pipe2()
754 let f1 = FdFlag::from_bits_truncate(fcntl(fd1, FcntlArg::F_GETFD).unwrap()); in test_pipe2()
/third_party/rust/crates/nix/src/
H A Dfcntl.rs414 pub enum FcntlArg<'a> { enum
446 pub enum FcntlArg { enum
454 pub use self::FcntlArg::*;
457 pub fn fcntl(fd: RawFd, arg: FcntlArg) -> Result<c_int> { in fcntl()
H A Dunistd.rs8 use crate::fcntl::{fcntl, FcntlArg::F_SETFD, FdFlag, OFlag};
/third_party/rust/crates/nix/test/sys/
H A 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()

Completed in 10 milliseconds