* 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.
This commit is contained in:
Christopher Faylor 2007-03-30 13:36:06 +00:00
parent 2c58b5a5e8
commit e7fd6e5738
5 changed files with 21 additions and 1 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -348,6 +348,8 @@ main (int argc, char **argv)
exit (1);
}
cygwin_internal (CW_SET_DOS_FILE_WARNING, false);
argc--;
switch (do_what)
{