Skip to content

Commit ecfd2a9

Browse files
committed
---
yaml --- r: 151430 b: refs/heads/try2 c: 295e0a0 h: refs/heads/master v: v3
1 parent c0fb9cb commit ecfd2a9

File tree

8 files changed

+494
-158
lines changed

8 files changed

+494
-158
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: e27f27c8588f5cfa0cd9dfbbdf7609ea2d6818ec
8+
refs/heads/try2: 295e0a04ad57c001e854c5f52cecc18335113544
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libnative/io/c_unix.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ pub static FIOCLEX: libc::c_ulong = 0x20006601;
2727
#[cfg(target_os = "android")]
2828
pub static FIOCLEX: libc::c_ulong = 0x5451;
2929

30+
#[cfg(target_os = "macos")]
31+
#[cfg(target_os = "freebsd")]
32+
pub static MSG_DONTWAIT: libc::c_int = 0x80;
33+
#[cfg(target_os = "linux")]
34+
#[cfg(target_os = "android")]
35+
pub static MSG_DONTWAIT: libc::c_int = 0x40;
36+
3037
extern {
3138
pub fn gettimeofday(timeval: *mut libc::timeval,
3239
tzp: *libc::c_void) -> libc::c_int;

branches/try2/src/libnative/io/c_win32.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub static WSADESCRIPTION_LEN: uint = 256;
1818
pub static WSASYS_STATUS_LEN: uint = 128;
1919
pub static FIONBIO: libc::c_long = 0x8004667e;
2020
static FD_SETSIZE: uint = 64;
21+
pub static MSG_DONTWAIT: libc::c_int = 0;
2122

2223
pub struct WSADATA {
2324
pub wVersion: libc::WORD,

branches/try2/src/libnative/io/file_unix.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ impl rtio::RtioPipe for FileDesc {
189189
fn close_write(&mut self) -> Result<(), IoError> {
190190
Err(io::standard_error(io::InvalidInput))
191191
}
192+
fn set_timeout(&mut self, _t: Option<u64>) {}
193+
fn set_read_timeout(&mut self, _t: Option<u64>) {}
194+
fn set_write_timeout(&mut self, _t: Option<u64>) {}
192195
}
193196

194197
impl rtio::RtioTTY for FileDesc {

branches/try2/src/libnative/io/file_win32.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ impl rtio::RtioPipe for FileDesc {
221221
fn close_write(&mut self) -> IoResult<()> {
222222
Err(io::standard_error(io::InvalidInput))
223223
}
224+
fn set_timeout(&mut self, _t: Option<u64>) {}
225+
fn set_read_timeout(&mut self, _t: Option<u64>) {}
226+
fn set_write_timeout(&mut self, _t: Option<u64>) {}
224227
}
225228

226229
impl rtio::RtioTTY for FileDesc {

0 commit comments

Comments
 (0)