Cygwin: move chmod_device declaration to winsup.h

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2020-01-28 15:33:05 +01:00 committed by Ken Brown
parent f7d01f111d
commit b2cb7c090e
3 changed files with 1 additions and 2 deletions

View File

@ -1754,7 +1754,6 @@ fhandler_base::closedir (DIR *)
int
fhandler_base::fchmod (mode_t mode)
{
extern int chmod_device (path_conv& pc, mode_t mode);
if (pc.is_fs_special ())
return chmod_device (pc, mode);
/* By default, just succeeds. */

View File

@ -698,7 +698,6 @@ out:
int __reg1
fhandler_disk_file::fchmod (mode_t mode)
{
extern int chmod_device (path_conv& pc, mode_t mode);
int ret = -1;
int oret = 0;
NTSTATUS status;

View File

@ -178,6 +178,7 @@ extern struct per_process_cxx_malloc default_cygwin_cxx_malloc;
/* various events */
void events_init ();
int chmod_device (class path_conv& pc, mode_t mode);
void __stdcall close_all_files (bool = false);
/* debug_on_trap support. see exceptions.cc:try_to_debug() */