mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
* 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>
|
||||
|
||||
* cygserver_shm.cc (delete_shmnode): New function.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user