summary refs log tree commit diff
path: root/src/liblibc
diff options
context:
space:
mode:
authorFlorian Hartwig <florian.j.hartwig@gmail.com>2015-07-10 16:23:14 +0200
committerFlorian Hartwig <florian.j.hartwig@gmail.com>2015-07-10 16:23:54 +0200
commitf200ad85bd8ead749dea217bdd65dfe130c4db18 (patch)
treeee3ac84c268c577253ebc8a75a79ba6f13185cac /src/liblibc
parentcdcce3ba4491436e6603833cee19533003993117 (diff)
downloadrust-f200ad85bd8ead749dea217bdd65dfe130c4db18.tar.gz
rust-f200ad85bd8ead749dea217bdd65dfe130c4db18.zip
Show file name and access mode in Debug instance for File on OS X
Diffstat (limited to 'src/liblibc')
-rw-r--r--src/liblibc/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs
index 0a32c73a848..c41a161c82c 100644
--- a/src/liblibc/lib.rs
+++ b/src/liblibc/lib.rs
@@ -4978,6 +4978,8 @@ pub mod consts {
             pub const F_GETFL : c_int = 3;
             pub const F_SETFL : c_int = 4;
 
+            pub const O_ACCMODE : c_int = 3;
+
             pub const SIGTRAP : c_int = 5;
             pub const SIG_IGN: size_t = 1;
 
@@ -5130,6 +5132,7 @@ pub mod consts {
             pub const O_DSYNC : c_int = 4194304;
             pub const O_SYNC : c_int = 128;
             pub const O_NONBLOCK : c_int = 4;
+            pub const F_GETPATH : c_int = 50;
             pub const F_FULLFSYNC : c_int = 51;
 
             pub const MAP_COPY : c_int = 0x0002;
@@ -5151,6 +5154,8 @@ pub mod consts {
             pub const SO_DONTTRUNC: c_int = 0x2000;
             pub const SO_WANTMORE: c_int = 0x4000;
             pub const SO_WANTOOBFLAG: c_int = 0x8000;
+
+            pub const PATH_MAX: c_int = 1024;
         }
         pub mod sysconf {
             use types::os::arch::c95::c_int;