diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-28 07:42:58 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-28 07:42:58 +0400 |
commit | 1ac6d1a1443d8347f3fcbdab7792619dd9ad33ef (patch) | |
tree | 588d30857bcae78b7b7cbca426fdde61c40713a7 /winsup/cygwin/dcrt0.cc | |
parent | 6222b61feede1fd534c7ec1292f7cb51237bd201 (diff) |
* lib/_cygwin_S_IEXEC.c: Remove "const" from globals or they never seem to be
defined. Wrap definitions in extern "C". Include winsup.h to assure proper
definitions.
* dcrt0.cc (dll_crt0_1): Call stdio_init after premain run so that binmode.o,
etc., will control default stdio settings.
* dtable.cc (dtable::init_std_file_from_handle): Allow __fmode to force
binmode/textmode settings. Default pipes to binmode.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index a76e9e5ca..fb5a31e99 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -784,9 +784,6 @@ dll_crt0_1 () /* Connect to tty. */ tty_init (); - /* Set up standard fds in file descriptor table. */ - stdio_init (); - if (!__argc) { char *line = GetCommandLineA (); @@ -817,6 +814,9 @@ dll_crt0_1 () for (unsigned int i = 0; i < PREMAIN_LEN / 2; i++) user_data->premain[i] (__argc, __argv, user_data); + /* Set up standard fds in file descriptor table. */ + stdio_init (); + /* Set up __progname for getopt error call. */ __progname = __argv[0]; |