From 942357a798dd789d081616ce696f1221f7d27dd2 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 8 Dec 2005 14:17:36 +0000 Subject: Implement __x versions --- libc/sysdeps/linux/common/ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/ioctl.c') 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 #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) -- cgit v1.2.3