summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Perry <james.austin.perry@gmail.com>2016-01-23 21:42:54 +0000
committerJames Perry <james.austin.perry@gmail.com>2016-01-23 21:42:54 +0000
commit842ff2f5b451de659ef7ee8eba2b9e22994f174e (patch)
tree7eb46e111691e8614b52121c711c40c8a650b77f
parentb979fe0e35cbe824c87c0b5d9209f2d3bff0a808 (diff)
downloadrust-libc-842ff2f5b451de659ef7ee8eba2b9e22994f174e.tar.gz
adding SOCK_NONBLOCK & SOCK_CLOEXEC for linux MIPS
-rw-r--r--src/unix/notbsd/linux/mips.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/notbsd/linux/mips.rs b/src/unix/notbsd/linux/mips.rs
index ebf2d230f7..00a2235b93 100644
--- a/src/unix/notbsd/linux/mips.rs
+++ b/src/unix/notbsd/linux/mips.rs
@@ -205,6 +205,8 @@ pub const O_FSYNC: ::c_int = 0x4010;
pub const O_ASYNC: ::c_int = 0x1000;
pub const O_NDELAY: ::c_int = 0x80;
+pub const SOCK_NONBLOCK: ::c_int = 128;
+
pub const EDEADLK: ::c_int = 45;
pub const ENAMETOOLONG: ::c_int = 78;
pub const ENOLCK: ::c_int = 46;