summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-02-15 08:59:55 +0000
committerCorinna Vinschen <corinna@vinschen.de>2015-02-15 08:59:55 +0000
commitd2bd82aa921c109853b80adde21f40ba95bbfd32 (patch)
tree0bf2ad636a9cec62d6457e0306c9eed8b688d296 /winsup/cygwin/fhandler.h
parent6b14f3988c52874a01845d49e03486cc3336bd4f (diff)
downloadcygnal-d2bd82aa921c109853b80adde21f40ba95bbfd32.tar.gz
cygnal-d2bd82aa921c109853b80adde21f40ba95bbfd32.tar.bz2
cygnal-d2bd82aa921c109853b80adde21f40ba95bbfd32.zip
* path.h (path_conv): Make path_flags private. Rename known_suffix to
suffix and make private. Rename normalized_path to posix_path and make privtae. Accommodate name changes throughout in path_conv methods. (path_conv::known_suffix): New method. Use throughout instead of accessing suffix directly. (path_conv::get_win32): Constify. (path_conv::get_posix): New method to read posix_path. Use throughout instead of accessing normalized_path directly. (path_conv::set_posix): Rename from set_normalized_path. Accommodate name change throughout. * spawn.cc (find_exec): Return POSIX path, not Win32 path.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 5fa6fe222..0298a6f6a 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1,7 +1,7 @@
/* fhandler.h
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.
+ 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
@@ -196,7 +196,7 @@ class fhandler_base
virtual void set_name (path_conv &pc);
virtual void set_name (const char *s)
{
- pc.set_normalized_path (s);
+ pc.set_posix (s);
pc.set_path (s);
}
int error () const {return pc.error;}
@@ -295,7 +295,7 @@ class fhandler_base
bool isremote () { return pc.isremote (); }
bool has_attribute (DWORD x) const {return pc.has_attribute (x);}
- const char *get_name () const { return pc.normalized_path; }
+ const char *get_name () const { return pc.get_posix (); }
const char *get_win32_name () { return pc.get_win32 (); }
virtual dev_t get_dev () { return get_device (); }
ino_t get_ino () { return ino ?: ino = hash_path_name (0, pc.get_nt_native_path ()); }