Преглед на файлове

create hidden alias for truncate/ftruncate and use those in the 64bit versions

Mike Frysinger преди 18 години
родител
ревизия
dc3e1771cd

+ 1 - 0
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)

+ 2 - 0
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>

+ 1 - 0
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)

+ 2 - 0
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>