summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:17:36 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:17:36 +0000
commit942357a798dd789d081616ce696f1221f7d27dd2 (patch)
treea09bd1888870becbf5b9a7ffd5dc0f4eb3d2bbb9 /libc/sysdeps
parent55829cec8a8bd99c1129e58e18222382a1e96823 (diff)
Implement __x versions
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/ioctl.c5
-rw-r--r--libc/sysdeps/linux/common/unlink.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/ioctl.c b/libc/sysdeps/linux/common/ioctl.c
index 9b2442d0a..29293f359 100644
--- a/libc/sysdeps/linux/common/ioctl.c
+++ b/libc/sysdeps/linux/common/ioctl.c
@@ -12,9 +12,10 @@
#include <sys/ioctl.h>
#define __NR___syscall_ioctl __NR_ioctl
+static inline
_syscall3(int, __syscall_ioctl, int, fd, unsigned long int, request, void *, arg);
-int ioctl(int fd, unsigned long int request, ...)
+int attribute_hidden __ioctl(int fd, unsigned long int request, ...)
{
void *arg;
va_list list;
@@ -25,4 +26,4 @@ int ioctl(int fd, unsigned long int request, ...)
va_end(list);
return __syscall_ioctl(fd, request, arg);
}
-
+strong_alias(__ioctl,ioctl)
diff --git a/libc/sysdeps/linux/common/unlink.c b/libc/sysdeps/linux/common/unlink.c
index 1c9aa17cf..4d9c3cda9 100644
--- a/libc/sysdeps/linux/common/unlink.c
+++ b/libc/sysdeps/linux/common/unlink.c
@@ -9,4 +9,6 @@
#include "syscalls.h"
#include <unistd.h>
-_syscall1(int, unlink, const char *, pathname);
+#define __NR___unlink __NR_unlink
+attribute_hidden _syscall1(int, __unlink, const char *, pathname);
+strong_alias(__unlink,unlink)