diff options
author | Christopher Faylor <me@cgf.cx> | 2005-01-31 21:29:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-01-31 21:29:59 +0000 |
commit | 17dc5be5e93091f6e594d646a96e87267366b9e0 (patch) | |
tree | ca2bb63920951fa3cba654c90d704677345824f8 /winsup/cygwin/path.cc | |
parent | 4faae8d6e94dd15c94a515b85303c8b3086b8d97 (diff) | |
download | cygnal-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.cc | 9 |
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) |