about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ftruncate64.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-09 01:39:16 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-09 01:39:16 +0000
commitaf1680f1f9926a0662fc35a53c491d2eec1ab262 (patch)
treeae7d3277c18194231c558f8ef146ff5d8628c684 /sysdeps/unix/sysv/linux/ftruncate64.c
parentd587d83bd9825c431456774321bfd0d5eabe7fee (diff)
downloadglibc-af1680f1f9926a0662fc35a53c491d2eec1ab262.tar.gz
glibc-af1680f1f9926a0662fc35a53c491d2eec1ab262.tar.xz
glibc-af1680f1f9926a0662fc35a53c491d2eec1ab262.zip
Update.
	* elf/readlib.c: Include a.out.h last since the Linux/Alpha
	headers are not clean enough.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ftruncate64.c')
-rw-r--r--sysdeps/unix/sysv/linux/ftruncate64.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/ftruncate64.c b/sysdeps/unix/sysv/linux/ftruncate64.c
index 17a5ab0288..6644b0523c 100644
--- a/sysdeps/unix/sysv/linux/ftruncate64.c
+++ b/sysdeps/unix/sysv/linux/ftruncate64.c
@@ -41,8 +41,9 @@ ftruncate64 (fd, length)
   if (! have_no_ftruncate64)
 #endif
     {
-      int result = INLINE_SYSCALL (ftruncate64, 3, fd, length >> 32,
-				   length & 0xffffffff);
+      unsigned int low = length & 0xffffffff;
+      unsigned int high = length >> 32;
+      int result = INLINE_SYSCALL (ftruncate64, 3, fd, low, high);
 
 #ifndef __ASSUME_TRUNCATE64_SYSCALL
       if (result != -1 || errno != ENOSYS)