1 /* $Id: ioctl32.c,v 1.5 2002/10/18 00:21:43 varenet Exp $
2 * ioctl32.c: Conversion between 32bit and 64bit native ioctls.
4 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com)
5 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
7 * These routines maintain argument size conversion between 32bit and 64bit
11 #include <linux/syscalls.h>
14 #include "compat_ioctl.c"
17 #include <asm/ioctls.h>
20 #include "compat_ioctl.c"
22 #define HANDLE_IOCTL(cmd, handler) { cmd, (ioctl_trans_handler_t)handler, NULL },
23 #define COMPATIBLE_IOCTL(cmd) HANDLE_IOCTL(cmd, sys_ioctl)
25 #define IOCTL_TABLE_START struct ioctl_trans ioctl_start[] = {
26 #define IOCTL_TABLE_END };
29 #include <linux/compat_ioctl.h>
32 #include "compat_ioctl.c"
34 /* And these ioctls need translation */
35 HANDLE_IOCTL(SIOCGPPPSTATS
, dev_ifsioc
)
36 HANDLE_IOCTL(SIOCGPPPCSTATS
, dev_ifsioc
)
37 HANDLE_IOCTL(SIOCGPPPVER
, dev_ifsioc
)
41 int ioctl_table_size
= ARRAY_SIZE(ioctl_start
);