From: Corinna Vinschen Date: Mon, 4 Mar 2002 16:47:41 +0000 (+0000) Subject: * syscalls.cc (truncate64): Use ftruncate64 directly to not lose X-Git-Tag: w32api-1_5~463 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=59149930a36f9d52cafeb08e04d10cf6500f9712;p=newlib-cygwin.git * syscalls.cc (truncate64): Use ftruncate64 directly to not lose upper 32 bits. --- diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a76a1b97e..19ba572c0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-03-04 Dmitry Timoshkov + + * syscalls.cc (truncate64): Use ftruncate64 directly to not lose + upper 32 bits. + 2002-03-04 Robert Collins * cygserver_shm.cc (delete_shmnode): New function. diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 7c0672e44..1613d7b8d 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);