diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-24 17:54:43 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-24 17:54:43 +0000 |
commit | 5a41f96dbb4255a55f2aad487a70856275eaf354 (patch) | |
tree | 565753985d3d8c776393a5a3b18152c9800c96f9 /winsup/cygwin/fhandler.cc | |
parent | 123469a0e9a5e669d868b00e938858bb97e8bff8 (diff) | |
download | newlib-5a41f96dbb4255a55f2aad487a70856275eaf354.zip newlib-5a41f96dbb4255a55f2aad487a70856275eaf354.tar.gz newlib-5a41f96dbb4255a55f2aad487a70856275eaf354.tar.bz2 |
* environ.cc (parse_thing): nobinmode should force O_TEXT.
(regopt): Use correct path to find LOCAL_MACHINE registry options.
* fhandler.cc (fhandler_base::open): Set binary mode only when binmode ==
O_BINARY.
* pipe.cc (pipe): Pipe handling should rely on binmode not _fmode now that the
two are different.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r-- | winsup/cygwin/fhandler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index fb6065f..6ce9736 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -24,7 +24,7 @@ static char fhandler_disk_dummy_name[] = "some disk file"; struct __cygwin_perfile *perfile_table = NULL; -DWORD binmode; +DWORD binmode = 0; int fhandler_base::puts_readahead (const char *s, size_t len = (size_t) -1) @@ -387,7 +387,7 @@ fhandler_base::open (int flags, mode_t mode) else if (get_device () == FH_DISK) bin = get_w_binary () || get_r_binary (); else - bin = binmode || get_w_binary () || get_r_binary (); + bin = (binmode == O_BINARY) || get_w_binary () || get_r_binary (); if (bin & O_TEXT) bin = 0; |