File tree Expand file tree Collapse file tree 8 files changed +494
-158
lines changed
branches/try2/src/libnative/io Expand file tree Collapse file tree 8 files changed +494
-158
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: e27f27c8588f5cfa0cd9dfbbdf7609ea2d6818ec
8
+ refs/heads/try2: 295e0a04ad57c001e854c5f52cecc18335113544
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
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