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/environ.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/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index 03ea6347c..f9785bcd4 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -18,8 +18,6 @@ extern BOOL allow_glob; extern BOOL allow_ntea; extern BOOL strip_title_path; extern DWORD chunksize; -extern BOOL binmode; -BOOL threadsafe; BOOL reset_com = TRUE; static BOOL envcache = TRUE; @@ -369,7 +367,7 @@ struct parse_thing } values[2]; } known[] = { - {"binmode", {&binmode}, justset, NULL, {{FALSE}, {TRUE}}}, + {"binmode", {x: &binmode}, justset, NULL, {{0}, {O_BINARY}}}, {"envcache", {&envcache}, justset, NULL, {{TRUE}, {FALSE}}}, {"error_start", {func: &error_start_init}, isfunc, NULL, {{0}, {0}}}, {"export", {&export_settings}, justset, NULL, {{FALSE}, {TRUE}}}, @@ -381,7 +379,6 @@ struct parse_thing {"strip_title", {&strip_title_path}, justset, NULL, {{FALSE}, {TRUE}}}, {"title", {&display_title}, justset, NULL, {{FALSE}, {TRUE}}}, {"tty", {NULL}, set_process_state, NULL, {{0}, {PID_USETTY}}}, - {"threadsafe", {&threadsafe}, justset, NULL, {{TRUE}, {FALSE}}}, {NULL, {0}, justset, 0, {{0}, {0}}} }; |