diff options
author | Christopher Faylor <me@cgf.cx> | 2000-07-29 16:01:23 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-07-29 16:01:23 +0000 |
commit | 53211514a0466b7e29f6f53c11b769befddfdfa6 (patch) | |
tree | 5a68ba861a827568644a5788f45b9dc23194a771 /winsup/cygwin/dtable.cc | |
parent | 9eef1530d55f69e6109e5d4348b735d008c2a666 (diff) | |
download | cygnal-53211514a0466b7e29f6f53c11b769befddfdfa6.tar.gz cygnal-53211514a0466b7e29f6f53c11b769befddfdfa6.tar.bz2 cygnal-53211514a0466b7e29f6f53c11b769befddfdfa6.zip |
* 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.cc | 2 |
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) |