summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/wincap.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2006-12-10 16:43:30 +0000
committerCorinna Vinschen <corinna@vinschen.de>2006-12-10 16:43:30 +0000
commitcbfb7b1b23fe1e382298b45cbcb214c8d088ac77 (patch)
treef6d910bd202c12e32ec9561900b61b35ecdaca60 /winsup/cygwin/wincap.cc
parent6c64fb2fda86ae252db928f9e5595463b2ae36c5 (diff)
downloadcygnal-cbfb7b1b23fe1e382298b45cbcb214c8d088ac77.tar.gz
cygnal-cbfb7b1b23fe1e382298b45cbcb214c8d088ac77.tar.bz2
cygnal-cbfb7b1b23fe1e382298b45cbcb214c8d088ac77.zip
* 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.
Diffstat (limited to 'winsup/cygwin/wincap.cc')
-rw-r--r--winsup/cygwin/wincap.cc13
1 files changed, 13 insertions, 0 deletions
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));