diff options
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/common/ioctl.c | 5 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/unlink.c | 4 |
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) |