Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-07-29 20:01:23 +0400
committerChristopher Faylor <me@cgf.cx>2000-07-29 20:01:23 +0400
commit53211514a0466b7e29f6f53c11b769befddfdfa6 (patch)
tree5a68ba861a827568644a5788f45b9dc23194a771 /winsup/cygwin/dtable.cc
parent9eef1530d55f69e6109e5d4348b735d008c2a666 (diff)
* environ.cc (parse_thing): Make binmode a DWORD.
* hinfo.cc (hinfo::init_std_file_from_handle): Use 'binmode' to determine default open mode. * winsup.h: Declare binmode.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 8f8b14aa1..32c4a4347 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -151,7 +151,7 @@ void
hinfo::init_std_file_from_handle (int fd, HANDLE handle,
DWORD myaccess, const char *name)
{
- int bin = __fmode;
+ int bin = binmode ? O_BINARY : 0;
/* Check to see if we're being redirected - if not then
we open then as consoles */
if (fd == 0 || fd == 1 || fd == 2)