summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/ioctl.c
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/linux/common/ioctl.c
parent55829cec8a8bd99c1129e58e18222382a1e96823 (diff)
Implement __x versions
Diffstat (limited to 'libc/sysdeps/linux/common/ioctl.c')
-rw-r--r--libc/sysdeps/linux/common/ioctl.c5
1 files changed, 3 insertions, 2 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)