Cygwin: flock: Fix overlap handling in lf_setlock() and lf_clearlock()
[newlib-cygwin.git] / winsup / cygwin / binmode.c
blobfedcd39184f3c75aaffb70d9a91ed870aa44eff5
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_TEXT;
20 _fmode |= O_BINARY;