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>
14 libc_hidden_proto(ioctl)
16 #define __NR___syscall_ioctl __NR_ioctl
17 static __always_inline
18 _syscall3(int, __syscall_ioctl, int, fd, int, request, void *, arg)
20 int ioctl(int fd, unsigned long int request, ...)
25 va_start(list, request);
26 arg = va_arg(list, void *);
29 return __syscall_ioctl(fd, request, arg);
31 libc_hidden_def(ioctl)