* fhandler.h (fhandler_base::pc): Make public.
* fhandler_disk_file.cc (fhandler_disk_file::link): Drop extern declaration of stat_suffixes. Use NT native path in debug output. (fhandler_base::utimes_fs): Simplify closeit case. Use close_fs to close newly opened file handle. (fhandler_base::open_fs): Use NT native path in debug output. * path.cc: Throughout drop extern declaration of stat_suffixes. * path.h (stat_suffixes): Declare. * sec_acl.cc (acl_worker): Drop extern declaration of stat_suffixes. * times.cc (utimes_worker): Take path_conv as parameter instead of single-byte pathnam, drop nofollow argument, accommodate throughout. Compare UNICODE paths when enumerating file descriptors. Fix formatting. Use NT native path in debug output.
This commit is contained in:
@ -2863,8 +2863,6 @@ int
|
||||
symlink_worker (const char *oldpath, const char *newpath, bool use_winsym,
|
||||
bool isdevice)
|
||||
{
|
||||
extern suffix_info stat_suffixes[];
|
||||
|
||||
HANDLE h;
|
||||
int res = -1;
|
||||
path_conv win32_path, win32_oldpath;
|
||||
@ -3682,8 +3680,6 @@ symlink_info::case_check (char *path)
|
||||
extern "C" int
|
||||
readlink (const char *path, char *buf, int buflen)
|
||||
{
|
||||
extern suffix_info stat_suffixes[];
|
||||
|
||||
if (buflen < 0)
|
||||
{
|
||||
set_errno (ENAMETOOLONG);
|
||||
@ -3968,8 +3964,6 @@ cygwin_conv_to_full_posix_path (const char *path, char *posix_path)
|
||||
extern "C" char *
|
||||
realpath (const char *path, char *resolved)
|
||||
{
|
||||
extern suffix_info stat_suffixes[];
|
||||
|
||||
/* Make sure the right errno is returned if path is NULL. */
|
||||
if (!path)
|
||||
{
|
||||
|
Reference in New Issue
Block a user