summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-06-06 08:11:19 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-06-06 08:11:19 +0000
commit54152c7e7ed656c969fe4536f17f66360cd8d971 (patch)
tree458098c0f911a990200369579ba4cb845e16c5c8 /winsup/cygwin/fhandler.cc
parentb0ad6f2ba5308778b0ce6ab3563d349fb5f919be (diff)
downloadcygnal-54152c7e7ed656c969fe4536f17f66360cd8d971.tar.gz
cygnal-54152c7e7ed656c969fe4536f17f66360cd8d971.tar.bz2
cygnal-54152c7e7ed656c969fe4536f17f66360cd8d971.zip
* cygwin.din: Add vsyslog.
* fhandler.cc (fhandler_base::write): Only make file sparse if the seeked area is >= 128K. * syslog.cc (vsyslog): New function, overtaking functionality from syslog. (syslog): Just call vsyslog. * include/cygwin/version.h: Bump API minor. * include/sys/syslog.h: Add vsyslog declaration.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index ac0dfd581..8142cfa27 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -629,7 +629,7 @@ fhandler_base::write (const void *ptr, size_t len)
if (current_position > actual_length)
{
if ((get_fs_flags (FILE_SUPPORTS_SPARSE_FILES))
- && current_position >= actual_length + (64 * 1024))
+ && current_position >= actual_length + (128 * 1024))
{
/* If the file systemn supports sparse files and the application
is writing after a long seek beyond EOF, convert the file to