summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2018-01-04 02:48:39 +0300
committerGreg V <greg@unrelenting.technology>2018-02-12 12:52:10 +0300
commit5600cc40d5e558a6cd722b43fb708d9bd36e29a9 (patch)
tree9b9446ef4335e330592aaac3e3b21257a929d52b /src
parent9eddb1ea14bfd643608c964331f26fb721069634 (diff)
downloadnix-5600cc40d5e558a6cd722b43fb708d9bd36e29a9.zip
Add missing kqueue event filters on FreeBSD
Diffstat (limited to 'src')
-rw-r--r--src/sys/event.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sys/event.rs b/src/sys/event.rs
index 3a6c528d..e2a4eaa1 100644
--- a/src/sys/event.rs
+++ b/src/sys/event.rs
@@ -40,6 +40,9 @@ libc_enum! {
#[cfg_attr(not(target_os = "netbsd"), repr(i16))]
pub enum EventFilter {
EVFILT_AIO,
+ /// Returns whenever there is no remaining data in the write buffer
+ #[cfg(target_os = "freebsd")]
+ EVFILT_EMPTY,
#[cfg(target_os = "dragonfly")]
EVFILT_EXCEPT,
#[cfg(any(target_os = "dragonfly",
@@ -52,7 +55,16 @@ libc_enum! {
#[cfg(any(target_os = "ios", target_os = "macos"))]
EVFILT_MACHPORT,
EVFILT_PROC,
+ /// Returns events associated with the process referenced by a given
+ /// process descriptor, created by `pdfork()`. The events to monitor are:
+ ///
+ /// - NOTE_EXIT: the process has exited. The exit status will be stored in data.
+ #[cfg(target_os = "freebsd")]
+ EVFILT_PROCDESC,
EVFILT_READ,
+ /// Returns whenever an asynchronous `sendfile()` call completes.
+ #[cfg(target_os = "freebsd")]
+ EVFILT_SENDFILE,
EVFILT_SIGNAL,
EVFILT_TIMER,
#[cfg(any(target_os = "dragonfly",