diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-01-11 14:50:45 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-01-11 14:50:45 +0000 |
commit | 95a5c969ab3016e3ea79ef2c3ea705cb12dc69e5 (patch) | |
tree | f890a7b4d90f6d03cfea7d6cc37009489056199b /newlib/libc/sys/linux/shm_open.c | |
parent | 5837aa428fd812d89e54ebccdbe96bafd271b453 (diff) | |
download | cygnal-95a5c969ab3016e3ea79ef2c3ea705cb12dc69e5.tar.gz cygnal-95a5c969ab3016e3ea79ef2c3ea705cb12dc69e5.tar.bz2 cygnal-95a5c969ab3016e3ea79ef2c3ea705cb12dc69e5.zip |
* fhandler.h (MAX_PARTITIONS): New definition.
(class fhandler_dev_floppy): Add partitions array member. Add close
method.
* fhandler_floppy.cc (fhandler_dev_floppy::fhandler_dev_floppy): Zero
out partitions array.
(fhandler_dev_floppy::open): Fix "entire disk" condition for call to
DeviceIoControl (FSCTL_ALLOW_EXTENDED_DASD_IO).
When opening disks for writing, call DeviceIoControl (FSCTL_LOCK_VOLUME)
on all affected disk partitions starting with Vista.
(fhandler_dev_floppy::close): New method.
(fhandler_dev_floppy::dup): Duplicate handles in partitions, if any.
* wincap.h (wincaps::has_restricted_raw_disk_access): New element.
* wincap.cc: Implement above element throughout.
Diffstat (limited to 'newlib/libc/sys/linux/shm_open.c')
0 files changed, 0 insertions, 0 deletions