From cbfb7b1b23fe1e382298b45cbcb214c8d088ac77 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 10 Dec 2006 16:43:30 +0000 Subject: * autoload.cc (SHFileOperationA): Drop definition. * ntdll.h (struct _FILE_RENAME_INFORMATION): Define. * path.cc (fs_info::update): Note length of rootdir prefix in root_len. (get_nt_native_path): New function, taking over functionality of path_conv::get_nt_native_path. (path_conv::get_nt_native_path): Just call get_nt_native_path. * path.h (get_nt_native_path): Declare. (struct fs_info): New member root_len. (fs_info::length): New inline method returning root_len. (path_conv::rootdir): New inline method returning rootdir prefix. * syscalls.cc (try_to_bin): Rewrite using only system calls. (unlink_nt): Call try_to_bin with additional handle to open file parameter. (statvfs): Use path_conv::rootdir method. * wincap.h: Define has_recycle_dot_bin throughout. * wincap.cc: Ditto. --- winsup/cygwin/wincap.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'winsup/cygwin/wincap.cc') diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index 939e41585..730263415 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -71,6 +71,7 @@ static NO_COPY wincaps wincap_unknown = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_95 = { @@ -133,6 +134,7 @@ static NO_COPY wincaps wincap_95 = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_95osr2 = { @@ -195,6 +197,7 @@ static NO_COPY wincaps wincap_95osr2 = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_98 = { @@ -257,6 +260,7 @@ static NO_COPY wincaps wincap_98 = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_98se = { @@ -319,6 +323,7 @@ static NO_COPY wincaps wincap_98se = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_me = { @@ -381,6 +386,7 @@ static NO_COPY wincaps wincap_me = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_nt3 = { @@ -443,6 +449,7 @@ static NO_COPY wincaps wincap_nt3 = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:true, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_nt4 = { @@ -505,6 +512,7 @@ static NO_COPY wincaps wincap_nt4 = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:true, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_nt4sp4 = { @@ -567,6 +575,7 @@ static NO_COPY wincaps wincap_nt4sp4 = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:true, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_2000 = { @@ -629,6 +638,7 @@ static NO_COPY wincaps wincap_2000 = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:true, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_xp = { @@ -691,6 +701,7 @@ static NO_COPY wincaps wincap_xp = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_2003 = { @@ -753,6 +764,7 @@ static NO_COPY wincaps wincap_2003 = { has_mandatory_integrity_control:false, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:false, + has_recycle_dot_bin:false, }; static NO_COPY wincaps wincap_vista = { @@ -815,6 +827,7 @@ static NO_COPY wincaps wincap_vista = { has_mandatory_integrity_control:true, needs_logon_sid_in_sid_list:false, needs_count_in_si_lpres2:true, + has_recycle_dot_bin:true, }; wincapc wincap __attribute__((section (".cygwin_dll_common"), shared)); -- cgit v1.2.3