1 /* vi: set sw=4 ts=4: */
5 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
7 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
10 #include <sys/syscall.h>
12 #include <sys/ioctl.h>
15 #define __NR___syscall_ioctl __NR_ioctl
16 static __always_inline
17 _syscall3(int, __syscall_ioctl, int, fd, unsigned long int, request, void *, arg)
19 int ioctl(int fd, unsigned long int request, ...)
24 va_start(list, request);
25 arg = va_arg(list, void *);
29 return __syscall_ioctl(fd, request, arg);
31 int oldtype = LIBC_CANCEL_ASYNC ();
32 int result = __syscall_ioctl(fd, request, arg);
33 LIBC_CANCEL_RESET (oldtype);
37 lt_strong_alias(ioctl)