File tree Expand file tree Collapse file tree 8 files changed +494
-158
lines changed Expand file tree Collapse file tree 8 files changed +494
-158
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e27f27c8588f5cfa0cd9dfbbdf7609ea2d6818ec
2
+ refs/heads/master: 295e0a04ad57c001e854c5f52cecc18335113544
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
5
5
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17
Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ pub static FIOCLEX: libc::c_ulong = 0x20006601;
27
27
#[ cfg( target_os = "android" ) ]
28
28
pub static FIOCLEX : libc:: c_ulong = 0x5451 ;
29
29
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
+
30
37
extern {
31
38
pub fn gettimeofday ( timeval : * mut libc:: timeval ,
32
39
tzp : * libc:: c_void ) -> libc:: c_int ;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ pub static WSADESCRIPTION_LEN: uint = 256;
18
18
pub static WSASYS_STATUS_LEN : uint = 128 ;
19
19
pub static FIONBIO : libc:: c_long = 0x8004667e ;
20
20
static FD_SETSIZE : uint = 64 ;
21
+ pub static MSG_DONTWAIT : libc:: c_int = 0 ;
21
22
22
23
pub struct WSADATA {
23
24
pub wVersion : libc:: WORD ,
Original file line number Diff line number Diff line change @@ -189,6 +189,9 @@ impl rtio::RtioPipe for FileDesc {
189
189
fn close_write ( & mut self ) -> Result < ( ) , IoError > {
190
190
Err ( io:: standard_error ( io:: InvalidInput ) )
191
191
}
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 > ) { }
192
195
}
193
196
194
197
impl rtio:: RtioTTY for FileDesc {
Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ impl rtio::RtioPipe for FileDesc {
221
221
fn close_write ( & mut self ) -> IoResult < ( ) > {
222
222
Err ( io:: standard_error ( io:: InvalidInput ) )
223
223
}
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 > ) { }
224
227
}
225
228
226
229
impl rtio:: RtioTTY for FileDesc {
You can’t perform that action at this time.
0 commit comments