diff options
Diffstat (limited to 'winsup/cygwin/devices.in')
-rw-r--r-- | winsup/cygwin/devices.in | 13 |
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)); +} |