svn commit: trunk/uClibc/libc/sysdeps/linux/common
vapier at uclibc.org
vapier at uclibc.org
Sun Jan 8 11:43:42 UTC 2006
Author: vapier
Date: 2006-01-08 03:43:41 -0800 (Sun, 08 Jan 2006)
New Revision: 13175
Log:
create hidden alias for truncate/ftruncate and use those in the 64bit versions
Modified:
trunk/uClibc/libc/sysdeps/linux/common/ftruncate.c
trunk/uClibc/libc/sysdeps/linux/common/ftruncate64.c
trunk/uClibc/libc/sysdeps/linux/common/truncate.c
trunk/uClibc/libc/sysdeps/linux/common/truncate64.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/ftruncate.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/ftruncate.c 2006-01-08 11:40:56 UTC (rev 13174)
+++ trunk/uClibc/libc/sysdeps/linux/common/ftruncate.c 2006-01-08 11:43:41 UTC (rev 13175)
@@ -10,3 +10,4 @@
#include "syscalls.h"
#include <unistd.h>
_syscall2(int, ftruncate, int, fd, __off_t, length);
+hidden_strong_alias(ftruncate, __ftruncate)
Modified: trunk/uClibc/libc/sysdeps/linux/common/ftruncate64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/ftruncate64.c 2006-01-08 11:40:56 UTC (rev 13174)
+++ trunk/uClibc/libc/sysdeps/linux/common/ftruncate64.c 2006-01-08 11:43:41 UTC (rev 13175)
@@ -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>
Modified: trunk/uClibc/libc/sysdeps/linux/common/truncate.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/truncate.c 2006-01-08 11:40:56 UTC (rev 13174)
+++ trunk/uClibc/libc/sysdeps/linux/common/truncate.c 2006-01-08 11:43:41 UTC (rev 13175)
@@ -10,3 +10,4 @@
#include "syscalls.h"
#include <unistd.h>
_syscall2(int, truncate, const char *, path, __off_t, length);
+hidden_strong_alias(truncate, __truncate)
Modified: trunk/uClibc/libc/sysdeps/linux/common/truncate64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/truncate64.c 2006-01-08 11:40:56 UTC (rev 13174)
+++ trunk/uClibc/libc/sysdeps/linux/common/truncate64.c 2006-01-08 11:43:41 UTC (rev 13175)
@@ -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>
More information about the uClibc-cvs
mailing list