* 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.
This commit is contained in:
Christopher Faylor
2000-08-24 17:54:43 +00:00
parent 123469a0e9
commit 5a41f96dbb
4 changed files with 18 additions and 5 deletions

View File

@@ -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