diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-02-18 05:48:08 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-02-18 05:48:08 +0000 |
commit | 5efeef3b6d2b22a285d1ba3b5016944bb65eb7b5 (patch) | |
tree | 71c4bd3c79fed683693ddbd49e34f8e042b97718 /libc/sysdeps/linux/common/ioctl.c | |
parent | 1bbb166142db8bbe98283d7601bac1701cff6ad3 (diff) |
Fixup ioctl so we can special case powerpc silliness
Diffstat (limited to 'libc/sysdeps/linux/common/ioctl.c')
-rw-r--r-- | libc/sysdeps/linux/common/ioctl.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/ioctl.c b/libc/sysdeps/linux/common/ioctl.c new file mode 100644 index 000000000..d3cc617ac --- /dev/null +++ b/libc/sysdeps/linux/common/ioctl.c @@ -0,0 +1,18 @@ +#include <stdarg.h> +#include <sys/ioctl.h> + +extern int __syscall_ioctl(int fd, int request, void *arg); + +/* powerpc has its own special version... */ +int ioctl(int fd, unsigned long int request, ...) +{ + void *arg; + va_list list; + + va_start(list, request); + arg = va_arg(list, void *); + + va_end(list); + return __syscall_ioctl(fd, request, arg); +} + |