Skip to content

Commit 1b22d01

Browse files
committed
Auto merge of rust-lang#663 - ndusart:master, r=alexcrichton
add poll constants to Android Adding `POLLRDNORM`, `POLLRDBAND`, `POLLWRBAND` and `POLLWRNORM` for Android
2 parents 3f903a1 + bc79f4f commit 1b22d01

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,9 @@ pub const TIOCM_DSR: ::c_int = 0x100;
808808
pub const TIOCM_CD: ::c_int = TIOCM_CAR;
809809
pub const TIOCM_RI: ::c_int = TIOCM_RNG;
810810

811+
pub const POLLWRNORM: ::c_short = 0x100;
812+
pub const POLLWRBAND: ::c_short = 0x200;
813+
811814
f! {
812815
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
813816
for slot in cpuset.__bits.iter_mut() {

src/unix/notbsd/linux/mips/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,7 @@ pub const SIG_SETMASK: ::c_int = 3;
381381
pub const SIG_BLOCK: ::c_int = 0x1;
382382
pub const SIG_UNBLOCK: ::c_int = 0x2;
383383

384-
pub const POLLRDNORM: ::c_short = 0x040;
385384
pub const POLLWRNORM: ::c_short = 0x004;
386-
pub const POLLRDBAND: ::c_short = 0x080;
387385
pub const POLLWRBAND: ::c_short = 0x100;
388386

389387
pub const PTHREAD_STACK_MIN: ::size_t = 131072;

src/unix/notbsd/linux/musl/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ pub const MADV_DONTDUMP: ::c_int = 16;
203203

204204
pub const EPOLLWAKEUP: ::c_int = 0x20000000;
205205

206-
pub const POLLRDNORM: ::c_short = 0x040;
207-
pub const POLLRDBAND: ::c_short = 0x080;
208-
209206
pub const MADV_HUGEPAGE: ::c_int = 14;
210207
pub const MADV_NOHUGEPAGE: ::c_int = 15;
211208

src/unix/notbsd/linux/other/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,6 @@ pub const SIGWINCH: ::c_int = 28;
269269

270270
pub const SIGEV_THREAD_ID: ::c_int = 4;
271271

272-
pub const POLLRDNORM: ::c_short = 0x040;
273-
pub const POLLRDBAND: ::c_short = 0x080;
274-
275272
pub const FALLOC_FL_KEEP_SIZE: ::c_int = 0x01;
276273
pub const FALLOC_FL_PUNCH_HOLE: ::c_int = 0x02;
277274

src/unix/notbsd/linux/s390x.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,7 @@ pub const B3000000: ::speed_t = 0o010015;
846846
pub const B3500000: ::speed_t = 0o010016;
847847
pub const B4000000: ::speed_t = 0o010017;
848848

849-
pub const POLLRDNORM: ::c_short = 0x040;
850849
pub const POLLWRNORM: ::c_short = 0x004;
851-
pub const POLLRDBAND: ::c_short = 0x080;
852850
pub const POLLWRBAND: ::c_short = 0x100;
853851

854852
#[link(name = "util")]

src/unix/notbsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,9 @@ pub const P_PGID: idtype_t = 2;
761761
pub const UTIME_OMIT: c_long = 1073741822;
762762
pub const UTIME_NOW: c_long = 1073741823;
763763

764+
pub const POLLRDNORM: ::c_short = 0x040;
765+
pub const POLLRDBAND: ::c_short = 0x080;
766+
764767
f! {
765768
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
766769
let fd = fd as usize;

0 commit comments

Comments
 (0)