summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/arm
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-12-19 18:49:17 +0000
committerJeff Johnston <jjohnstn@redhat.com>2007-12-19 18:49:17 +0000
commit7f9b49e42758147189448939f277547428deeeb6 (patch)
tree8b6c0d92969ad01619d3bec911ed31e032fd5bc9 /newlib/libc/sys/arm
parentc6bfc3d4bc3614e62f3ce80700eb2aea97b667ba (diff)
downloadcygnal-7f9b49e42758147189448939f277547428deeeb6.tar.gz
cygnal-7f9b49e42758147189448939f277547428deeeb6.tar.bz2
cygnal-7f9b49e42758147189448939f277547428deeeb6.zip
2007-11-15 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/_default_fcntl.h: New header file that is the default version of sys/fcntl.h. * libc/include/sys/fcntl.h: Changed to simply include sys/_default_fcntl.h. * libc/sys/arm/sys/fcntl.h: New file that includes sys/_default_fcntl.h and defines O_BINARY.
Diffstat (limited to 'newlib/libc/sys/arm')
-rw-r--r--newlib/libc/sys/arm/sys/fcntl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/sys/arm/sys/fcntl.h b/newlib/libc/sys/arm/sys/fcntl.h
new file mode 100644
index 000000000..7da1d46da
--- /dev/null
+++ b/newlib/libc/sys/arm/sys/fcntl.h
@@ -0,0 +1,12 @@
+#ifndef _SYS_FCNTL_H_
+#define _SYS_FCNTL_H_
+
+#include <sys/_default_fcntl.h>
+
+/* We want to support O_BINARY for the open syscall.
+ For example, the Demon debug monitor has a separate
+ flag value for "rb" vs "r". */
+#define _FBINARY 0x10000
+#define O_BINARY _FBINARY
+
+#endif /* _SYS_FCNTL_H_ */