diff options
author | Christopher Faylor <me@cgf.cx> | 2005-02-01 16:49:13 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-02-01 16:49:13 +0000 |
commit | 74d8e12e16d5d5416ce37100f8767ff0affa90ec (patch) | |
tree | d10e1a02e7ba0ff1322cd3f3dd68c101aaf646f5 /winsup/cygwin/devices.cc | |
parent | 01a94cf8662ffe333b0b75fc98aa44ada4320aeb (diff) | |
download | cygnal-74d8e12e16d5d5416ce37100f8767ff0affa90ec.tar.gz cygnal-74d8e12e16d5d5416ce37100f8767ff0affa90ec.tar.bz2 cygnal-74d8e12e16d5d5416ce37100f8767ff0affa90ec.zip |
* cygthread.cc (cygthread::terminate_thread): Wait briefly for notification
event in the event that the thread was actually in the process of exiting.
* pipe.cc (fhandler_pipe::dup): read_state is not supposed to be inheritable.
Fix that.
* path.cc (path_conv::check): Set symlen = 0 to avoid a compiler warning.
* devices.h (devices::parsedisk): Declare new function.
* devices.in (devices::parsedisk): Define new function.
* dtable.cc (dtable::init_std_file_from_handle): Use device numbers rather than
name.
* fhandler_proc.cc (format_proc_partitions): Use parsedisk to generate disk
names from numeric codes. (This was broken on two of my systems previously and
is still broken now)
Diffstat (limited to 'winsup/cygwin/devices.cc')
-rw-r--r-- | winsup/cygwin/devices.cc | 13 |
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)); +} |