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
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2023-03-20 14:23:36 +0300
committerCorinna Vinschen <corinna@vinschen.de>2023-03-20 14:55:30 +0300
commit271292b1fbdc7da7c1ed678836eebe596170e635 (patch)
treebf747b07ab5d816f09d47b14a6290042d658d5e1 /winsup/cygwin/forkable.cc
parentfcccdc4021ffbe86c5ea6bb3b5c64b95c98f4ed4 (diff)
Cygwin: unlink: drop unlink_nt/unlink_nt_shareable wrappers
Useless indirection. Rename _unlink_nt back to unlink_nt and call the function directly with `sharable' flag as needed. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/forkable.cc')
-rw-r--r--winsup/cygwin/forkable.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/forkable.cc b/winsup/cygwin/forkable.cc
index fbc30ae30..c69c8bea9 100644
--- a/winsup/cygwin/forkable.cc
+++ b/winsup/cygwin/forkable.cc
@@ -29,7 +29,7 @@ details. */
/* Allow concurrent processes to use the same dll or exe
* via their hardlink while we delete our hardlink. */
-extern NTSTATUS unlink_nt_shareable (path_conv &pc);
+extern NTSTATUS unlink_nt (path_conv &pc, bool sharable);
#define MUTEXSEP L"@"
#define PATHSEP L"\\"
@@ -132,7 +132,7 @@ rmdirs (WCHAR ntmaxpathbuf[NT_MAX_PATH])
RtlInitUnicodeString (&fn, ntmaxpathbuf);
path_conv pc (&fn);
- unlink_nt_shareable (pc); /* move to bin */
+ unlink_nt (pc, true); /* move to bin */
}
if (!pfdi->NextEntryOffset)