public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: move chmod_device declaration to winsup.h
@ 2020-01-28 17:02 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-01-28 17:02 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=464db253c46c49802a73d2d15113b88dd282a370

commit 464db253c46c49802a73d2d15113b88dd282a370
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Tue Jan 28 15:33:05 2020 +0100

    Cygwin: move chmod_device declaration to winsup.h
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler.cc           | 1 -
 winsup/cygwin/fhandler_disk_file.cc | 1 -
 winsup/cygwin/winsup.h              | 1 +
 3 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 4210510..d754077 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -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. */
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 32381a0..197f04f 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -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;
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index de9bfac..887d54f 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -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() */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-28 17:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-28 17:02 [newlib-cygwin] Cygwin: move chmod_device declaration to winsup.h Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).