diff options
author | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2004-09-07 23:26:28 +0000 |
---|---|---|
committer | Pierre Humblet <phumblet@phumblet.no-ip.org> | 2004-09-07 23:26:28 +0000 |
commit | a4563209156b42816f2936374bd09e3bc84837f8 (patch) | |
tree | 107b69e928c55644dfd32670447441ac4379c425 /winsup/cygwin/cygheap.h | |
parent | b00c5f99d854bfd6e9eaef2a8d4d54018aa91e1c (diff) | |
download | cygnal-a4563209156b42816f2936374bd09e3bc84837f8.tar.gz cygnal-a4563209156b42816f2936374bd09e3bc84837f8.tar.bz2 cygnal-a4563209156b42816f2936374bd09e3bc84837f8.zip |
2004-09-05 Pierre Humblet <pierre.humblet@ieee.org>
* cygheap.h (cwdstuff::drive_length): New member.
(cwdstuff::get_drive): New method.
* path.cc (normalize_win32_path): Simplify by using cwdstuff::get_drive.
(mount_info::conv_to_win32_path): Use cwdstuff::get_drive as default for /.
(cwdstuff::set): Initialize drive_length.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r-- | winsup/cygwin/cygheap.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 59253b5c7..c19a51ae2 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -216,9 +216,16 @@ struct cwdstuff char *posix; char *win32; DWORD hash; + DWORD drive_length; muto *cwd_lock; char *get (char *, int = 1, int = 0, unsigned = CYG_MAX_PATH); DWORD get_hash (); + DWORD get_drive (char * dst) + { + get_initial (); + memcpy (dst, win32, drive_length); + return drive_length; + } void init (); void fixup_after_exec (char *, char *, DWORD); bool get_initial (); |