Auto merge of #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 !
This commit is contained in:
commit
4f44ccfe48
|
@ -1491,11 +1491,6 @@ pub const CTL_DEBUG_NAME: ::c_int = 0;
|
|||
pub const CTL_DEBUG_VALUE: ::c_int = 1;
|
||||
pub const CTL_DEBUG_MAXID: ::c_int = 20;
|
||||
|
||||
pub const POLLRDNORM: ::c_short = 0x040;
|
||||
pub const POLLWRNORM: ::c_short = 0x004;
|
||||
pub const POLLRDBAND: ::c_short = 0x080;
|
||||
pub const POLLWRBAND: ::c_short = 0x100;
|
||||
|
||||
pub const PRIO_DARWIN_THREAD: ::c_int = 3;
|
||||
pub const PRIO_DARWIN_PROCESS: ::c_int = 4;
|
||||
pub const PRIO_DARWIN_BG: ::c_int = 0x1000;
|
||||
|
|
|
@ -929,11 +929,6 @@ pub const OCRNL: ::tcflag_t = 0x10;
|
|||
pub const ONOCR: ::tcflag_t = 0x20;
|
||||
pub const ONLRET: ::tcflag_t = 0x40;
|
||||
|
||||
pub const POLLRDNORM: ::c_short = 0x040;
|
||||
pub const POLLWRNORM: ::c_short = 0x004;
|
||||
pub const POLLRDBAND: ::c_short = 0x080;
|
||||
pub const POLLWRBAND: ::c_short = 0x100;
|
||||
|
||||
f! {
|
||||
pub fn WIFCONTINUED(status: ::c_int) -> bool {
|
||||
status == 0x13
|
||||
|
|
|
@ -313,6 +313,11 @@ pub const TCP_MAXSEG: ::c_int = 2;
|
|||
|
||||
pub const PIPE_BUF: usize = 512;
|
||||
|
||||
pub const POLLRDNORM: ::c_short = 0x040;
|
||||
pub const POLLWRNORM: ::c_short = 0x004;
|
||||
pub const POLLRDBAND: ::c_short = 0x080;
|
||||
pub const POLLWRBAND: ::c_short = 0x100;
|
||||
|
||||
f! {
|
||||
pub fn FD_CLR(fd: ::c_int, set: *mut fd_set) -> () {
|
||||
let bits = mem::size_of_val(&(*set).fds_bits[0]) * 8;
|
||||
|
|
Loading…
Reference in New Issue