Skip to content

Commit 5fbc01b

Browse files
committed
---
yaml --- r: 82140 b: refs/heads/master c: 8aadcd4 h: refs/heads/master v: v3
1 parent 35b4c2f commit 5fbc01b

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a402fb27faabbe33f03d461d6684af4501db5ac4
2+
refs/heads/master: 8aadcd4851d90adfb32da6ba8da3e7e29d97c28e
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/src/libstd/rt/io/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ pub enum IoErrorKind {
367367
Closed,
368368
ConnectionRefused,
369369
ConnectionReset,
370+
NotConnected,
370371
BrokenPipe,
371372
PathAlreadyExists,
372373
PathDoesntExist,
@@ -386,6 +387,7 @@ impl ToStr for IoErrorKind {
386387
Closed => ~"Closed",
387388
ConnectionRefused => ~"ConnectionRefused",
388389
ConnectionReset => ~"ConnectionReset",
390+
NotConnected => ~"NotConnected",
389391
BrokenPipe => ~"BrokenPipe",
390392
PathAlreadyExists => ~"PathAlreadyExists",
391393
PathDoesntExist => ~"PathDoesntExist",

trunk/src/libstd/rt/uv/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ pub fn uv_error_to_io_error(uverr: UvError) -> IoError {
267267
EACCES => PermissionDenied,
268268
ECONNREFUSED => ConnectionRefused,
269269
ECONNRESET => ConnectionReset,
270+
ENOTCONN => NotConnected,
270271
EPIPE => BrokenPipe,
271272
err => {
272273
rtdebug!("uverr.code {}", err as int);

trunk/src/libstd/rt/uv/uvll.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ pub mod errors {
5353
pub static EACCES: c_int = -4093;
5454
pub static ECONNREFUSED: c_int = -4079;
5555
pub static ECONNRESET: c_int = -4078;
56+
pub static ENOTCONN: c_int = -4054;
5657
pub static EPIPE: c_int = -4048;
5758
}
5859
#[cfg(not(windows))]
@@ -63,6 +64,7 @@ pub mod errors {
6364
pub static EACCES: c_int = -libc::EACCES;
6465
pub static ECONNREFUSED: c_int = -libc::ECONNREFUSED;
6566
pub static ECONNRESET: c_int = -libc::ECONNRESET;
67+
pub static ENOTCONN: c_int = -libc::ENOTCONN;
6668
pub static EPIPE: c_int = -libc::EPIPE;
6769
}
6870

0 commit comments

Comments
 (0)