aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-03-04 16:47:41 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-03-04 16:47:41 +0000
commit59149930a36f9d52cafeb08e04d10cf6500f9712 (patch)
treeb630baf4e126475c83f8f8509fc0f7ce4d326488 /winsup
parent7c3617cc0a471bbd484538ea7d2b8a8f1e123e42 (diff)
downloadnewlib-59149930a36f9d52cafeb08e04d10cf6500f9712.zip
newlib-59149930a36f9d52cafeb08e04d10cf6500f9712.tar.gz
newlib-59149930a36f9d52cafeb08e04d10cf6500f9712.tar.bz2
* syscalls.cc (truncate64): Use ftruncate64 directly to not lose
upper 32 bits.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/syscalls.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a76a1b9..19ba572 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-04 Dmitry Timoshkov <dmitry@baikal.ru>
+
+ * syscalls.cc (truncate64): Use ftruncate64 directly to not lose
+ upper 32 bits.
+
2002-03-04 Robert Collins <rbtcollins@hotmail.com>
* cygserver_shm.cc (delete_shmnode): New function.
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 7c0672e..1613d7b 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1720,7 +1720,7 @@ truncate64 (const char *pathname, __off64_t length)
set_errno (EBADF);
else
{
- res = ftruncate (fd, length);
+ res = ftruncate64 (fd, length);
close (fd);
}
syscall_printf ("%d = truncate (%s, %d)", res, pathname, length);