summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-10-16 20:17:23 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-10-16 20:17:23 +0000
commit081be67e75e5bb721606cbaff9a4b77e9489dba3 (patch)
treefce8c1154fb0f1c61df0cb6715992956c2220d67 /winsup/cygwin/path.cc
parent2de2be2235c402d7b527de29e7b74185e8028cf3 (diff)
downloadcygnal-081be67e75e5bb721606cbaff9a4b77e9489dba3.tar.gz
cygnal-081be67e75e5bb721606cbaff9a4b77e9489dba3.tar.bz2
cygnal-081be67e75e5bb721606cbaff9a4b77e9489dba3.zip
* fhandler_raw.cc (fhandler_dev_raw::open): Eliminate compatibility
code since no Win32 device names are used anymore. * fhandler_tape.cc (fhandler_dev_tape::tape_set_blocksize): Allow 0 as blocksize to indicate variable blocksize. * path.cc (win32_device_name): Generate NT internal device names using upper/lower case names for readability. Generate \DosDevices\<letter>: device name for mount table compatibility devices.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index e0d39b8dc..317b3a6d7 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -1010,18 +1010,18 @@ win32_device_name (const char *src_path, char *win32_path,
__small_sprintf (win32_path, devfmt, unit == 8 ? "" : "u");
break;
case FH_TAPE:
- __small_sprintf (win32_path, "\\device\\tape%d", unit % 128);
+ __small_sprintf (win32_path, "\\Device\\Tape%d", unit % 128);
break;
case FH_FLOPPY:
if (unit < 16)
- __small_sprintf (win32_path, "\\device\\floppy%d", unit);
+ __small_sprintf (win32_path, "\\Device\\Floppy%d", unit);
else if (unit < 32)
- __small_sprintf (win32_path, "\\device\\cdrom%d", unit - 16);
+ __small_sprintf (win32_path, "\\Device\\CdRom%d", unit - 16);
else if (unit < 224)
- __small_sprintf (win32_path, "\\device\\harddisk%d\\partition%d",
+ __small_sprintf (win32_path, "\\Device\\Harddisk%d\\Partition%d",
(unit - 32) / 16, unit % 16);
else
- __small_sprintf (win32_path, "\\\\.\\%c:", unit - 224 + 'A');
+ __small_sprintf (win32_path, "\\DosDevices\\%c:", unit - 224 + 'A');
break;
default:
__small_sprintf (win32_path, devfmt, unit);