diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-01-12 09:16:51 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-01-12 09:16:51 +0000 |
commit | 667f187146dabad4791e55192941a06254379ebb (patch) | |
tree | 03329572fba5b9e067cf72cb418e42b62314e6c3 /newlib/libc/sys/linux/sig.c | |
parent | 95a5c969ab3016e3ea79ef2c3ea705cb12dc69e5 (diff) | |
download | cygnal-667f187146dabad4791e55192941a06254379ebb.tar.gz cygnal-667f187146dabad4791e55192941a06254379ebb.tar.bz2 cygnal-667f187146dabad4791e55192941a06254379ebb.zip |
* fhandler.h (struct part_t): New type.
(class fhandler_dev_floppy): Convert partitions to part_t pointer.
Add lock_partition method.
* fhandler_floppy.cc (fhandler_dev_floppy::lock_partition): New method
to implement ondemand partition locking.
(fhandler_dev_floppy::write_file): Call lock_partition from here if
writing failed due to a potential write restriction on a disk
partition.
(fhandler_dev_floppy::open): Don't lock partitions here.
(fhandler_dev_floppy::close): Keep track of partition handle reference
count. Close handles and remove partitions pointer ony if count is 0.
(fhandler_dev_floppy::dup): Just copy partitions pointer and increment
reference count.
Diffstat (limited to 'newlib/libc/sys/linux/sig.c')
0 files changed, 0 insertions, 0 deletions