Skip to content

Commit f370109

Browse files
committed
Added POLLSTANDARD and POLLINIGNEOF constants for freebsd-like unix
1 parent 5b519f6 commit f370109

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ pub const POSIX_FADV_WILLNEED: ::c_int = 3;
160160
pub const POSIX_FADV_DONTNEED: ::c_int = 4;
161161
pub const POSIX_FADV_NOREUSE: ::c_int = 5;
162162

163+
pub const POLLINIGNEOF: ::c_short = 0x2000;
164+
163165
pub const EVFILT_READ: ::int16_t = -1;
164166
pub const EVFILT_WRITE: ::int16_t = -2;
165167
pub const EVFILT_AIO: ::int16_t = -3;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ pub const EMULTIHOP: ::c_int = 90;
439439
pub const ENOLINK: ::c_int = 91;
440440
pub const EPROTO: ::c_int = 92;
441441

442+
pub const POLLSTANDARD: ::c_short = ::POLLIN | ::POLLPRI | ::POLLOUT | ::POLLRDNORM | ::POLLRDBAND | ::POLLWRBAND | ::POLLERR | ::POLLHUP | ::POLLNVAL;
443+
442444
pub const EAI_SYSTEM: ::c_int = 11;
443445

444446
pub const F_DUPFD: ::c_int = 0;

0 commit comments

Comments
 (0)