diff options
author | Christopher Faylor <me@cgf.cx> | 2007-03-30 13:36:06 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2007-03-30 13:36:06 +0000 |
commit | e7fd6e57382a012d68036e25628ff3b0e2c613d2 (patch) | |
tree | e6be97e5d588a1f7d7f762e167216d06b0453851 | |
parent | 2c58b5a5e8cf5fcc361bf1de60f4ca5b5ca08620 (diff) | |
download | newlib-e7fd6e57382a012d68036e25628ff3b0e2c613d2.zip newlib-e7fd6e57382a012d68036e25628ff3b0e2c613d2.tar.gz newlib-e7fd6e57382a012d68036e25628ff3b0e2c613d2.tar.bz2 |
* cygwin/external.cc (cygwin_internal): Implement CW_SET_DOS_FILE_WARNING.
* cygwin/include/sys/cygwin.h: Define CW_SET_DOS_FILE_WARNING.
* utils/mount.cc (main): Turn dos file warnings off since we know what we're
doing.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/external.cc | 7 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/cygwin.h | 3 | ||||
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/mount.cc | 2 |
5 files changed, 21 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3f80bc7..2b8553b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-03-30 Christopher Faylor <me@cgf.cx> + + * external.cc (cygwin_internal): Implement CW_SET_DOS_FILE_WARNING. + * include/sys/cygwin.h: Define CW_SET_DOS_FILE_WARNING. + 2007-03-29 Corinna Vinschen <corinna@vinschen.de> * cygheap.cc (cygheap_init): Fix formatting. Remove comment. Set diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 4cc539e..b6b64f1 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -350,6 +350,13 @@ cygwin_internal (cygwin_getinfo_types t, ...) return 0; case CW_CYGTLS_PADSIZE: return CYGTLS_PADSIZE; + case CW_SET_DOS_FILE_WARNING: + { + extern bool dos_file_warning; + dos_file_warning = va_arg (arg, int); + } + break; + default: break; } diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h index 26bfee0..7cc36c4 100644 --- a/winsup/cygwin/include/sys/cygwin.h +++ b/winsup/cygwin/include/sys/cygwin.h @@ -87,7 +87,8 @@ typedef enum CW_ENVP, CW_DEBUG_SELF, CW_SYNC_WINENV, - CW_CYGTLS_PADSIZE + CW_CYGTLS_PADSIZE, + CW_SET_DOS_FILE_WARNING } cygwin_getinfo_types; #define CW_NEXTPID 0x80000000 /* or with pid to get next one */ diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 9d4d882..8407fb3 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2007-03-30 Christopher Faylor <me@cgf.cx> + + * mount.cc (main): Turn dos file warnings off since we know what we're + doing. + 2007-02-22 Corinna Vinschen <corinna@vinschen.de> * ipcs.c (_POSIX2_LINE_MAX): Drop definition. diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc index ec2d9b6..ae44711 100644 --- a/winsup/utils/mount.cc +++ b/winsup/utils/mount.cc @@ -348,6 +348,8 @@ main (int argc, char **argv) exit (1); } + cygwin_internal (CW_SET_DOS_FILE_WARNING, false); + argc--; switch (do_what) { |