Skip to content

Commit db27ee2

Browse files
committed
Auto merge of rust-lang#702 - berkowski:bsd_poll_flags, r=alexcrichton
A few missing *BSD poll flags Added a few missing BSD poll flags for completeness.
2 parents ecd468e + 1935c1a commit db27ee2

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,10 @@ 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 |
443+
::POLLRDNORM | ::POLLRDBAND | ::POLLWRBAND | ::POLLERR |
444+
::POLLHUP | ::POLLNVAL;
445+
442446
pub const EAI_SYSTEM: ::c_int = 11;
443447

444448
pub const F_DUPFD: ::c_int = 0;

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ pub const MS_INVALIDATE : ::c_int = 0x0004;
191191

192192
pub const PTHREAD_STACK_MIN : ::size_t = 2048;
193193

194+
pub const POLLNORM: ::c_short = ::POLLRDNORM;
195+
194196
pub const ENOATTR : ::c_int = 83;
195197
pub const EILSEQ : ::c_int = 84;
196198
pub const EOVERFLOW : ::c_int = 87;

0 commit comments

Comments
 (0)