summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/devices.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/devices.cc')
-rw-r--r--winsup/cygwin/devices.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/winsup/cygwin/devices.cc b/winsup/cygwin/devices.cc
index 1c368cdb9..adb197aad 100644
--- a/winsup/cygwin/devices.cc
+++ b/winsup/cygwin/devices.cc
@@ -14850,5 +14850,18 @@ device::tty_to_real_device ()
parse (DEV_TTYS_MAJOR, myself->ctty);
}
+void
+device::parsedisk (int drive, int part)
+{
+ int base;
+ if (drive < ('q' - 'a'))
+ base = DEV_SD_MAJOR;
+ else
+ {
+ base = DEV_SD1_MAJOR;
+ drive -= 'q' - 'q';
+ }
+ parse (base, part + (drive * 16));
+}