summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-01-31 21:29:59 +0000
committerChristopher Faylor <me@cgf.cx>2005-01-31 21:29:59 +0000
commit17dc5be5e93091f6e594d646a96e87267366b9e0 (patch)
treeca2bb63920951fa3cba654c90d704677345824f8 /winsup/cygwin/path.cc
parent4faae8d6e94dd15c94a515b85303c8b3086b8d97 (diff)
downloadcygnal-17dc5be5e93091f6e594d646a96e87267366b9e0.tar.gz
cygnal-17dc5be5e93091f6e594d646a96e87267366b9e0.tar.bz2
cygnal-17dc5be5e93091f6e594d646a96e87267366b9e0.zip
* path.h (path_conv::set_name): Declare new function.
* path.cc (path_conv::set_name): Define new function. * fhandler.h (fhandler_dev_null::open): Declare new function. * fhandler.cc (fhandler_dev_null::open): Define new function.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 5d5d1eade..9705acd1a 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -942,6 +942,15 @@ out:
#endif
}
+void
+path_conv::set_name (const char *win32, const char *posix)
+{
+ if (!normalized_path_size && normalized_path)
+ cfree (normalized_path);
+ strcpy (path, win32);
+ set_normalized_path (posix, false);
+}
+
path_conv::~path_conv ()
{
if (!normalized_path_size && normalized_path)