Home
last modified time | relevance | path

Searched refs:SignalFd (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/nix/src/sys/
Dsignalfd.rs83 pub struct SignalFd(RawFd); struct
85 impl SignalFd { impl
86 pub fn new(mask: &SigSet) -> Result<SignalFd> { in new() argument
90 pub fn with_flags(mask: &SigSet, flags: SfdFlags) -> Result<SignalFd> { in with_flags() argument
93 Ok(SignalFd(fd)) in with_flags()
117 impl Drop for SignalFd { implementation
126 impl AsRawFd for SignalFd { implementation
132 impl Iterator for SignalFd { implementation
159 let fd = SignalFd::new(&mask); in create_signalfd()
166 let fd = SignalFd::with_flags(&mask, SfdFlags::SFD_CLOEXEC | SfdFlags::SFD_NONBLOCK); in create_signalfd_with_opts()
[all …]
/external/crosvm/sys_util/src/
Dsignalfd.rs64 pub struct SignalFd { struct
69 impl SignalFd { impl
75 pub fn new(signal: c_int) -> Result<SignalFd> { in new() argument
90 Ok(SignalFd { in new()
131 impl AsRawFd for SignalFd { implementation
137 impl AsRawDescriptor for SignalFd { implementation
143 impl Drop for SignalFd { implementation
165 SignalFd::new(SIGRTMIN()).unwrap(); in new()
171 let sigrt_fd = SignalFd::new(sigid).unwrap(); in read()
184 let sigrt_fd = SignalFd::new(sigid).unwrap(); in drop()
/external/rust/crates/nix/test/sys/
Dtest_signalfd.rs5 use nix::sys::signalfd::SignalFd; in test_signalfd()
16 let mut fd = SignalFd::new(&mask).unwrap(); in test_signalfd()
/external/crosvm/src/plugin/
Dmod.rs31 Event, FromRawDescriptor, Killable, MmapError, PollToken, Result as SysResult, SignalFd,
100 SignalFd(SignalFdError), enumerator
169 SignalFd(e) => write!(f, "failed to read signal fd: {}", e), in fmt()
608 let sigchld_fd = SignalFd::new(SIGCHLD).map_err(Error::CreateSignalFd)?; in run_config()
799 res = Err(Error::SignalFd(e)); in run_config()
/external/crosvm/src/
Dlinux.rs180 SignalFd(base::SignalFdError), enumerator
313 SignalFd(e) => write!(f, "failed to read signal fd: {}", e), in fmt()
2395 let sigchld_fd = SignalFd::new(libc::SIGCHLD).map_err(Error::CreateSignalFd)?; in run_vm()
2768 sigchld_fd: SignalFd, in run_control() argument
2951 while let Some(siginfo) = sigchld_fd.read().map_err(Error::SignalFd)? { in run_control()
/external/rust/crates/nix/
DCHANGELOG.md37 - `Dir`, `SignalFd`, and `PtyMaster` are no longer `Clone`.