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:
Diffstat (limited to 'winsup/cygwin/devices.in')
-rw-r--r--winsup/cygwin/devices.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/winsup/cygwin/devices.in b/winsup/cygwin/devices.in
index cc6040e8c..8c12b558d 100644
--- a/winsup/cygwin/devices.in
+++ b/winsup/cygwin/devices.in
@@ -130,3 +130,16 @@ 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));
+}