Cygwin: strptime: add release note
[newlib-cygwin.git] / winsup / cygwin / textmode.c
blob9230d2142e1d7d09cd16992b15a3d8865cd70cf6
1 /* binmode.c
3 This file is part of Cygwin.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 details. */
9 #include "winlean.h"
10 #include <sys/fcntl.h>
11 #include <sys/cygwin.h>
13 extern int _fmode;
14 void
15 cygwin_premain0 (int argc __attribute__ ((unused)),
16 char **argv __attribute__ ((unused)),
17 struct per_process *myself __attribute__ ((unused)))
19 _fmode &= ~O_BINARY;
20 _fmode |= O_TEXT;