summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-04-30 17:36:36 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-04-30 17:36:36 +0000
commit43b2d5bace17cc901af345c530ee617f530500f1 (patch)
treea4c58d66a6c55bcfc55c51c46667382c444505a3 /winsup/cygwin/path.h
parented8dd3c858ab4fa231d168e21909a8240e56e9c0 (diff)
downloadcygnal-43b2d5bace17cc901af345c530ee617f530500f1.tar.gz
cygnal-43b2d5bace17cc901af345c530ee617f530500f1.tar.bz2
cygnal-43b2d5bace17cc901af345c530ee617f530500f1.zip
* fhandler.cc (fhandler_base::open): Call path_conv::get_nt_native_path
for evaluating NT path. * path.cc (normalize_posix_path): Remove trailing dots and spaces. (path_conv::get_nt_native_path): New function. * path.h (class path_conv): Declare get_nt_native_path method.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 150799d59..c04366014 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -12,6 +12,7 @@ details. */
#include <sys/ioctl.h>
#include <fcntl.h>
+#include <ntdef.h>
enum executable_states
{
@@ -191,6 +192,7 @@ class path_conv
~path_conv ();
inline char *get_win32 () { return path; }
+ PUNICODE_STRING get_nt_native_path (UNICODE_STRING &upath, WCHAR *wpath);
operator char *() {return path;}
operator const char *() {return path;}
operator DWORD &() {return fileattr;}