OSDN Git Service

Enable to track git://github.com/monaka/binutils.git
[pf3gnuchains/pf3gnuchains3x.git] / winsup / mingw / CRTfmode.c
diff --git a/winsup/mingw/CRTfmode.c b/winsup/mingw/CRTfmode.c
new file mode 100644 (file)
index 0000000..cc1653a
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * CRTfmode.c
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is a part of the mingw-runtime package.
+ * No warranty is given; refer to the file DISCLAIMER within the package.
+ *
+ * This libmingw.a object sets  _CRT_fmode to a state that will cause 
+ * _mingw32_init_fmode to leave all file modes in their default state 
+ * (basically text mode).
+ *     
+ * To override the default, add, eg:
+ *
+ * #include <fcntl.h>
+ * int _CRT_fmode = _O_BINARY;
+ *
+ * to your app.        
+ */
+
+int _CRT_fmode = 0;