2011-01-13 21:50:02 +08:00
|
|
|
2011-01-13 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
2011-01-13 22:00:00 +08:00
|
|
|
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Always set
|
2011-01-13 21:50:02 +08:00
|
|
|
st_size of directories to 0. Explain why.
|
|
|
|
|
2011-01-12 21:09:31 +08:00
|
|
|
2011-01-12 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* posix.sgml: Add madvise to BSD list.
|
|
|
|
|
2011-01-12 21:01:43 +08:00
|
|
|
2011-01-12 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* cygwin.din (madvise): Export posix_madvise as madvise.
|
|
|
|
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
|
|
|
|
* include/sys/mman.h: Define madvise constants, keep Linux-specific
|
|
|
|
constants undefined.
|
|
|
|
(madvise): Declare.
|
|
|
|
|
2011-01-12 17:16:51 +08:00
|
|
|
2011-01-12 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
2011-01-11 22:50:45 +08:00
|
|
|
2011-01-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* 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.
|
|
|
|
|
2011-01-11 18:09:23 +08:00
|
|
|
2011-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
|
|
|
|
|
|
|
* termios.cc (cfgetospeed, cfgetispeed): Constify argument per POSIX.
|
|
|
|
* include/sys/termios.h (cfgetospeed, cfgetispeed): Declare functions.
|
|
|
|
Move macros after declarations and make conditional on !__cplusplus.
|
|
|
|
|
2011-01-11 16:05:51 +08:00
|
|
|
2011-01-11 Corinna Vinschen <corinna@vinschen.de>
|
|
|
|
|
|
|
|
* cygtls.cc (_cygtls::init_thread): Call _REENT_INIT_PTR. Drop setting
|
|
|
|
current locale and calling srand48.
|
|
|
|
|
2011-01-03 09:53:19 +08:00
|
|
|
2011-01-02 Christopher Faylor <me+cygwin@cgf.cx>
|
2010-12-29 14:33:30 +08:00
|
|
|
|
2011-01-03 09:53:19 +08:00
|
|
|
* ChangeLog-2010: Create from ChangeLog.
|
|
|
|
* ChangeLog: Start fresh.
|