summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-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>