diff options
author | Christopher Faylor <me@cgf.cx> | 2001-03-28 03:42:58 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-03-28 03:42:58 +0000 |
commit | 1ac6d1a1443d8347f3fcbdab7792619dd9ad33ef (patch) | |
tree | 588d30857bcae78b7b7cbca426fdde61c40713a7 /winsup/cygwin/lib | |
parent | 6222b61feede1fd534c7ec1292f7cb51237bd201 (diff) | |
download | newlib-1ac6d1a1443d8347f3fcbdab7792619dd9ad33ef.zip newlib-1ac6d1a1443d8347f3fcbdab7792619dd9ad33ef.tar.gz newlib-1ac6d1a1443d8347f3fcbdab7792619dd9ad33ef.tar.bz2 |
* 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/lib')
-rw-r--r-- | winsup/cygwin/lib/_cygwin_S_IEXEC.cc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/winsup/cygwin/lib/_cygwin_S_IEXEC.cc b/winsup/cygwin/lib/_cygwin_S_IEXEC.cc index eeb12f4..5f57c94 100644 --- a/winsup/cygwin/lib/_cygwin_S_IEXEC.cc +++ b/winsup/cygwin/lib/_cygwin_S_IEXEC.cc @@ -8,19 +8,17 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ -#if 0 -#include "windows.h" -#include <sys/cygwin.h> -#include "perprocess.h" -#endif +extern "C" { +#include "winsup.h" #include <sys/stat.h> #include <sys/unistd.h> -const unsigned _cygwin_S_IEXEC = S_IEXEC; -const unsigned _cygwin_S_IXUSR = S_IXUSR; -const unsigned _cygwin_S_IXGRP = S_IXGRP; -const unsigned _cygwin_S_IXOTH = S_IXOTH; -const unsigned _cygwin_X_OK = X_OK; +unsigned _cygwin_S_IEXEC = S_IEXEC; +unsigned _cygwin_S_IXUSR = S_IXUSR; +unsigned _cygwin_S_IXGRP = S_IXGRP; +unsigned _cygwin_S_IXOTH = S_IXOTH; +unsigned _cygwin_X_OK = X_OK; +}; extern int __declspec (dllimport) _check_for_executable; struct _cygwin_bob__ |