[PATCH] add linux/ioctl32.h header for 2.5.43
[linux-2.6/history.git] / include / linux / ioctl32.h
blobb7abfe6eae10ed04498733c7ecd3579d8b6b608e
1 #ifndef IOCTL32_H
2 #define IOCTL32_H 1
4 struct file;
6 int sys_ioctl(unsigned int, unsigned int, unsigned long);
8 /*
9 * Register an 32bit ioctl translation handler for ioctl cmd.
11 * handler == NULL: use 64bit ioctl handler.
12 * arguments to handler: fd: file descriptor
13 * cmd: ioctl command.
14 * arg: ioctl argument
15 * struct file *file: file descriptor pointer.
16 */
18 extern int register_ioctl32_conversion(unsigned int cmd, int (*handler)(unsigned int, unsigned int, unsigned long, struct file *));
20 extern int unregister_ioctl32_conversion(unsigned int cmd);
23 #endif