summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/truncate.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-04-01 04:47:08 -0400
committerMike Frysinger <vapier@gentoo.org>2013-04-01 04:47:08 -0400
commite8cc14e59ed3f66b84eedcc6ece65d40540edf47 (patch)
treef0f96213ccf56a98480d40ce24ec3a76431bb66e /libc/sysdeps/linux/common/truncate.c
parenta4c0668fa1f07129ffd69debdbea229b2f20f510 (diff)
libc: rename TRUNCATE64_HAS_4_ARGS to SYSCALL_ALIGN_64BIT
The reason truncate64 takes 4 args on some arches is that their ABI requires 64bit values to be aligned on register pair boundaries. Since this alignment affects more than just truncate64, rename the define to properly document its purpose. This also allows us to expand it to the other impacted syscalls (which will be done in a follow up commit). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps/linux/common/truncate.c')
-rw-r--r--libc/sysdeps/linux/common/truncate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/truncate.c b/libc/sysdeps/linux/common/truncate.c
index 0c533df94..5cbf67351 100644
--- a/libc/sysdeps/linux/common/truncate.c
+++ b/libc/sysdeps/linux/common/truncate.c
@@ -19,7 +19,7 @@ int truncate(const char *path, __off_t length)
# if defined __UCLIBC_HAS_LFS
return truncate64(path, length);
# elif __WORDSIZE == 32
-# if defined(__UCLIBC_TRUNCATE64_HAS_4_ARGS__)
+# if defined(__UCLIBC_SYSCALL_ALIGN_64BIT__)
return INLINE_SYSCALL(truncate64, 4, path, 0, OFF_HI_LO(length));
# else
return INLINE_SYSCALL(truncate64, 3, path, OFF_HI_LO(length));