summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/devices.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-04-02 19:25:58 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-04-02 19:25:58 +0000
commiteb7729eb36da9c27121d17d088860079d4c64625 (patch)
tree7be5585a4e40df2570cc601c7c2f83e9d81dfa00 /winsup/cygwin/devices.h
parent467e17b9af28a79cf58a8074637bb2c926765dca (diff)
downloadcygnal-eb7729eb36da9c27121d17d088860079d4c64625.tar.gz
cygnal-eb7729eb36da9c27121d17d088860079d4c64625.tar.bz2
cygnal-eb7729eb36da9c27121d17d088860079d4c64625.zip
* devices.h (device::get_device): New method.
* fhandler_dev.cc (fhandler_dev::readdir): Set st_ino to device number. * syscalls.cc (fhandler_base::stat_fixup): Ditto. Fix link count for CD-ROM devices. Fix typo in comment.
Diffstat (limited to 'winsup/cygwin/devices.h')
-rw-r--r--winsup/cygwin/devices.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/devices.h b/winsup/cygwin/devices.h
index f5607f8c8..dca3e4584 100644
--- a/winsup/cygwin/devices.h
+++ b/winsup/cygwin/devices.h
@@ -308,6 +308,7 @@ struct device
_minor_t get_minor () const {return d.minor;}
_major_t get_major () const {return d.major;}
+ _dev_t get_device () const {return d.devn;}
inline operator int& () {return d.devn_int;}
inline operator fh_devices () {return d.devn_fh_devices;}