Searched refs:FdFlag (Results 1 - 3 of 3) sorted by relevance
/third_party/rust/crates/nix/test/ |
H A D | test_unistd.rs | 749 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() 753 assert!(f0.contains(FdFlag::FD_CLOEXEC)); in test_pipe2() 754 let f1 = FdFlag::from_bits_truncate(fcntl(fd1, FcntlArg::F_GETFD).unwrap()); in test_pipe2() 755 assert!(f1.contains(FdFlag::FD_CLOEXEC)); in test_pipe2()
|
/third_party/rust/crates/nix/src/ |
H A D | fcntl.rs | 402 pub struct FdFlag: c_int { structure names 418 F_SETFD(FdFlag), // FD_FLAGS 450 F_SETFD(FdFlag), // FD_FLAGS
|
H A D | unistd.rs | 8 use crate::fcntl::{fcntl, FcntlArg::F_SETFD, FdFlag, OFlag}; 465 if let Err(e) = fcntl(fd, F_SETFD(FdFlag::FD_CLOEXEC)) { in dup3_polyfill()
|
Completed in 7 milliseconds