Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-08-13 19:08:25 +0400
committerCorinna Vinschen <corinna@vinschen.de>2007-08-13 19:08:25 +0400
commit19afaa1a50ad936d91cf898eb7bb7e24af8c573f (patch)
tree0a17146cd1be2f625f6ac68f802b3440339cba6f /winsup/cygwin/path.h
parente31a79b1d67d76260a1024957a89ad1320575b97 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index e911f4156..194a5648d 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -245,7 +245,6 @@ class path_conv
{path[0] = '\0';}
~path_conv ();
- void set_name (const char *win32, const char *posix);
inline char *get_win32 () { return path; }
PUNICODE_STRING get_nt_native_path ();
POBJECT_ATTRIBUTES get_object_attr (OBJECT_ATTRIBUTES &attr,
@@ -256,6 +255,13 @@ class path_conv
operator DWORD &() {return fileattr;}
operator int () {return fileattr; }
char operator [](int i) const {return path[i];}
+ path_conv &operator =(path_conv &pc)
+ {
+ memcpy (this, &pc, pc.size ());
+ set_normalized_path (pc.normalized_path, false);
+ wide_path = NULL;
+ return *this;
+ }
DWORD get_devn () const {return dev.devn;}
short get_unitn () const {return dev.minor;}
DWORD file_attributes () const {return fileattr;}