]> Git Repo - uclibc-ng.git/commitdiff
create hidden alias for truncate/ftruncate and use those in the 64bit versions
authorMike Frysinger <[email protected]>
Sun, 8 Jan 2006 11:43:41 +0000 (11:43 -0000)
committerMike Frysinger <[email protected]>
Sun, 8 Jan 2006 11:43:41 +0000 (11:43 -0000)
libc/sysdeps/linux/common/ftruncate.c
libc/sysdeps/linux/common/ftruncate64.c
libc/sysdeps/linux/common/truncate.c
libc/sysdeps/linux/common/truncate64.c

index f24ca8d9e98fd5d3aee2d4ef4258c92cc9ce3baa..a25fd0285b02dd8193d9aea9b5c8ff27647dccc1 100644 (file)
@@ -10,3 +10,4 @@
 #include "syscalls.h"
 #include <unistd.h>
 _syscall2(int, ftruncate, int, fd, __off_t, length);
+hidden_strong_alias(ftruncate, __ftruncate)
index 3cbc9a7990ec6643ec469f499132d9c45633fb57..51392a1aa2289776fea49e29a09e702aead0bc53 100644 (file)
@@ -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>
index 02527d9494e087f92551ddeb69a0822a43fdca8b..dd69bcb3e0b48e0a3c11d4f357602cd84aa7341c 100644 (file)
@@ -10,3 +10,4 @@
 #include "syscalls.h"
 #include <unistd.h>
 _syscall2(int, truncate, const char *, path, __off_t, length);
+hidden_strong_alias(truncate, __truncate)
index cf74812d606bbc64198758cf12312066d89f31aa..06b076c4f6fbacf5aa8566cc1b1714c5fce0715b 100644 (file)
@@ -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>
This page took 0.03249 seconds and 4 git commands to generate.