Skip to content

Commit 4f44ccf

Browse files
committed
Auto merge of rust-lang#666 - ndusart:master, r=alexcrichton
merge poll constants in BSD platforms Sorry for the different PR about the same constants, the miss in the different architectures appeared progressively as I modify nix source to expose the poll function for the different platforms. Hopefully, it should be the last one !
2 parents 9daed6e + 463e23e commit 4f44ccf

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,11 +1491,6 @@ pub const CTL_DEBUG_NAME: ::c_int = 0;
14911491
pub const CTL_DEBUG_VALUE: ::c_int = 1;
14921492
pub const CTL_DEBUG_MAXID: ::c_int = 20;
14931493

1494-
pub const POLLRDNORM: ::c_short = 0x040;
1495-
pub const POLLWRNORM: ::c_short = 0x004;
1496-
pub const POLLRDBAND: ::c_short = 0x080;
1497-
pub const POLLWRBAND: ::c_short = 0x100;
1498-
14991494
pub const PRIO_DARWIN_THREAD: ::c_int = 3;
15001495
pub const PRIO_DARWIN_PROCESS: ::c_int = 4;
15011496
pub const PRIO_DARWIN_BG: ::c_int = 0x1000;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -929,11 +929,6 @@ pub const OCRNL: ::tcflag_t = 0x10;
929929
pub const ONOCR: ::tcflag_t = 0x20;
930930
pub const ONLRET: ::tcflag_t = 0x40;
931931

932-
pub const POLLRDNORM: ::c_short = 0x040;
933-
pub const POLLWRNORM: ::c_short = 0x004;
934-
pub const POLLRDBAND: ::c_short = 0x080;
935-
pub const POLLWRBAND: ::c_short = 0x100;
936-
937932
f! {
938933
pub fn WIFCONTINUED(status: ::c_int) -> bool {
939934
status == 0x13

src/unix/bsd/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,11 @@ pub const TCP_MAXSEG: ::c_int = 2;
313313

314314
pub const PIPE_BUF: usize = 512;
315315

316+
pub const POLLRDNORM: ::c_short = 0x040;
317+
pub const POLLWRNORM: ::c_short = 0x004;
318+
pub const POLLRDBAND: ::c_short = 0x080;
319+
pub const POLLWRBAND: ::c_short = 0x100;
320+
316321
f! {
317322
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
318323
let bits = mem::size_of_val(&(*set).fds_bits[0]) * 8;

0 commit comments

Comments
 (0)