4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-19 07:22:14 +08:00

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>
This commit is contained in:
Corinna Vinschen 2023-09-08 22:34:52 +02:00
parent 7ced682549
commit 53472e1803
3 changed files with 2 additions and 6 deletions

View File

@ -1842,8 +1842,6 @@ fhandler_disk_file::mkdir (mode_t mode)
int int
fhandler_disk_file::rmdir () fhandler_disk_file::rmdir ()
{ {
extern NTSTATUS unlink_nt (path_conv &pc, bool sharable);
if (!pc.isdir ()) if (!pc.isdir ())
{ {
set_errno (ENOTDIR); set_errno (ENOTDIR);

View File

@ -27,10 +27,6 @@ details. */
#include <assert.h> #include <assert.h>
#include <tls_pbuf.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 MUTEXSEP L"@"
#define PATHSEP L"\\" #define PATHSEP L"\\"

View File

@ -225,6 +225,8 @@ class path_conv;
int stat_worker (path_conv &pc, struct stat *buf); 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); ino_t readdir_get_ino (const char *path, bool dot_dot);
/* mmap functions. */ /* mmap functions. */