From 19afaa1a50ad936d91cf898eb7bb7e24af8c573f Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 13 Aug 2007 15:08:25 +0000 Subject: * devices.in (dev_storage): Use native NT device name for kmsg mailslot. * devices.cc: Regenerate. * fhandler.cc (fhandler_base::operator =): Use path_conv assignment operator. (fhandler_base::set_name): Ditto. (fhandler_base::open): Use NT native path in debug output. * fhandler_mailslot.cc: Convert to NT native function calls. * ntdll.h (struct _FILE_MAILSLOT_SET_INFORMATION): Define. (NtCreateMailslotFile): Declare. * path.cc (path_conv::set_normalized_path): Don't set wide_path to NULL. (path_conv::set_name): Remove unused function. * path.h (path_conv::set_name): Drop declaration. (path_conv::operator =): Define. --- winsup/cygwin/path.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'winsup/cygwin/path.cc') diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 6620b02a4..4efc4571c 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -536,7 +536,6 @@ path_conv::set_normalized_path (const char *path_copy, bool strip_tail) } memcpy (normalized_path, path_copy, n); - wide_path = NULL; } PUNICODE_STRING @@ -1178,15 +1177,6 @@ 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) -- cgit v1.2.3