summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-08 11:43:41 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-08 11:43:41 +0000
commitdc3e1771cd0074a32581967f34fd94b98eaa672a (patch)
treec76b66423af562c97edb8ef80a4f3de1facf636c /libc/sysdeps/linux
parentff6418fcf94d0e0d9a62ffc371479ff4b0f7791d (diff)
create hidden alias for truncate/ftruncate and use those in the 64bit versions
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/ftruncate.c1
-rw-r--r--libc/sysdeps/linux/common/ftruncate64.c2
-rw-r--r--libc/sysdeps/linux/common/truncate.c1
-rw-r--r--libc/sysdeps/linux/common/truncate64.c2
4 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/ftruncate.c b/libc/sysdeps/linux/common/ftruncate.c
index f24ca8d9e..a25fd0285 100644
--- a/libc/sysdeps/linux/common/ftruncate.c
+++ b/libc/sysdeps/linux/common/ftruncate.c
@@ -10,3 +10,4 @@
#include "syscalls.h"
#include <unistd.h>
_syscall2(int, ftruncate, int, fd, __off_t, length);
+hidden_strong_alias(ftruncate, __ftruncate)
diff --git a/libc/sysdeps/linux/common/ftruncate64.c b/libc/sysdeps/linux/common/ftruncate64.c
index 3cbc9a799..51392a1aa 100644
--- a/libc/sysdeps/linux/common/ftruncate64.c
+++ b/libc/sysdeps/linux/common/ftruncate64.c
@@ -12,6 +12,8 @@
* the main directory of this archive for more details.
*/
+#define ftruncate __ftruncate
+
#include <features.h>
#include <unistd.h>
#include <errno.h>
diff --git a/libc/sysdeps/linux/common/truncate.c b/libc/sysdeps/linux/common/truncate.c
index 02527d949..dd69bcb3e 100644
--- a/libc/sysdeps/linux/common/truncate.c
+++ b/libc/sysdeps/linux/common/truncate.c
@@ -10,3 +10,4 @@
#include "syscalls.h"
#include <unistd.h>
_syscall2(int, truncate, const char *, path, __off_t, length);
+hidden_strong_alias(truncate, __truncate)
diff --git a/libc/sysdeps/linux/common/truncate64.c b/libc/sysdeps/linux/common/truncate64.c
index cf74812d6..06b076c4f 100644
--- a/libc/sysdeps/linux/common/truncate64.c
+++ b/libc/sysdeps/linux/common/truncate64.c
@@ -12,6 +12,8 @@
* the main directory of this archive for more details.
*/
+#define truncate __truncate
+
#include <features.h>
#include <unistd.h>
#include <errno.h>