Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-09-08 23:34:52 +0300
committerCorinna Vinschen <corinna@vinschen.de>2023-09-08 23:34:52 +0300
commit53472e1803808d5fb91029f4c26c86989c62c82c (patch)
treef479b903a99ba079f989279e542632b2a813847a /winsup
parent7ced682549ae718db29121013c84ce8057bc3509 (diff)
Cygwin: unlink_nt: declare in winsup.h
unlink_nt is used more than once so declare it in a header. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/fhandler/disk_file.cc2
-rw-r--r--winsup/cygwin/forkable.cc4
-rw-r--r--winsup/cygwin/local_includes/winsup.h2
3 files changed, 2 insertions, 6 deletions
diff --git a/winsup/cygwin/fhandler/disk_file.cc b/winsup/cygwin/fhandler/disk_file.cc
index 94f7ef566..d59cde78b 100644
--- a/winsup/cygwin/fhandler/disk_file.cc
+++ b/winsup/cygwin/fhandler/disk_file.cc
@@ -1842,8 +1842,6 @@ fhandler_disk_file::mkdir (mode_t mode)
int
fhandler_disk_file::rmdir ()
{
- extern NTSTATUS unlink_nt (path_conv &pc, bool sharable);
-
if (!pc.isdir ())
{
set_errno (ENOTDIR);
diff --git a/winsup/cygwin/forkable.cc b/winsup/cygwin/forkable.cc
index c69c8bea9..cd317a1ae 100644
--- a/winsup/cygwin/forkable.cc
+++ b/winsup/cygwin/forkable.cc
@@ -27,10 +27,6 @@ details. */
#include <assert.h>
#include <tls_pbuf.h>
-/* Allow concurrent processes to use the same dll or exe
- * via their hardlink while we delete our hardlink. */
-extern NTSTATUS unlink_nt (path_conv &pc, bool sharable);
-
#define MUTEXSEP L"@"
#define PATHSEP L"\\"
diff --git a/winsup/cygwin/local_includes/winsup.h b/winsup/cygwin/local_includes/winsup.h
index c9788de8f..bf0a0bcc3 100644
--- a/winsup/cygwin/local_includes/winsup.h
+++ b/winsup/cygwin/local_includes/winsup.h
@@ -225,6 +225,8 @@ class path_conv;
int stat_worker (path_conv &pc, struct stat *buf);
+NTSTATUS unlink_nt (path_conv &pc, bool sharable);
+
ino_t readdir_get_ino (const char *path, bool dot_dot);
/* mmap functions. */