summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygheap.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index fe2333c74..0932f865d 100644
--- a/winsup/cygwin/cygheap.h
+++ b/winsup/cygwin/cygheap.h
@@ -225,13 +225,17 @@ public:
class muto;
-struct cwdstuff
+class cwdstuff
{
+private:
char *posix;
- UNICODE_STRING win32;
HANDLE dir;
+public:
+ UNICODE_STRING win32;
DWORD drive_length;
static muto cwd_lock;
+ char *get_posix ();
+ void reset_posix () { if (posix) posix[0] = '\0'; }
char *get (char *, int = 1, int = 0, unsigned = NT_MAX_PATH);
HANDLE get_handle () { return dir; }
DWORD get_drive (char * dst)