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-08-24 21:54:43 +0400
committerChristopher Faylor <me@cgf.cx>2000-08-24 21:54:43 +0400
commit5a41f96dbb4255a55f2aad487a70856275eaf354 (patch)
tree565753985d3d8c776393a5a3b18152c9800c96f9 /winsup/cygwin/pipe.cc
parent123469a0e9a5e669d868b00e938858bb97e8bff8 (diff)
* 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/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index fb354a471..0031aff67 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -64,7 +64,8 @@ make_pipe (int fildes[2], unsigned int psize, int mode)
extern "C" int
pipe (int filedes[2])
{
- return make_pipe (filedes, 16384, (!__fmode || __fmode == O_BINARY) ? O_BINARY : O_TEXT);
+ extern DWORD binmode;
+ return make_pipe (filedes, 16384, (!binmode || binmode == O_BINARY) ? O_BINARY : O_TEXT);
}
extern "C" int