From dc3e1771cd0074a32581967f34fd94b98eaa672a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 8 Jan 2006 11:43:41 +0000 Subject: create hidden alias for truncate/ftruncate and use those in the 64bit versions --- libc/sysdeps/linux/common/ftruncate.c | 1 + libc/sysdeps/linux/common/ftruncate64.c | 2 ++ libc/sysdeps/linux/common/truncate.c | 1 + libc/sysdeps/linux/common/truncate64.c | 2 ++ 4 files changed, 6 insertions(+) (limited to 'libc') 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 _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 #include #include 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 _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 #include #include -- cgit v1.2.3