* syscalls.cc (truncate64): Use ftruncate64 directly to not lose
upper 32 bits.
This commit is contained in:
parent
7c3617cc0a
commit
59149930a3
|
@ -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>
|
2002-03-04 Robert Collins <rbtcollins@hotmail.com>
|
||||||
|
|
||||||
* cygserver_shm.cc (delete_shmnode): New function.
|
* cygserver_shm.cc (delete_shmnode): New function.
|
||||||
|
|
|
@ -1720,7 +1720,7 @@ truncate64 (const char *pathname, __off64_t length)
|
||||||
set_errno (EBADF);
|
set_errno (EBADF);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
res = ftruncate (fd, length);
|
res = ftruncate64 (fd, length);
|
||||||
close (fd);
|
close (fd);
|
||||||
}
|
}
|
||||||
syscall_printf ("%d = truncate (%s, %d)", res, pathname, length);
|
syscall_printf ("%d = truncate (%s, %d)", res, pathname, length);
|
||||||
|
|
Loading…
Reference in New Issue