* syscalls.cc (truncate64): Use ftruncate64 directly to not lose

upper 32 bits.
This commit is contained in:
Corinna Vinschen 2002-03-04 16:47:41 +00:00
parent 7c3617cc0a
commit 59149930a3
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);