4 * Wrapper for Linux ioctl definitions, including workarounds
7 #ifndef LIBINSTALLER_LINUXIOCTL_H
8 #define LIBINSTALLER_LINUXIOCTL_H
10 #include <sys/ioctl.h>
12 #define statfs _kernel_statfs /* HACK to deal with broken 2.4 distros */
14 #include <linux/fd.h> /* Floppy geometry */
15 #include <linux/hdreg.h> /* Hard disk geometry */
17 #include <linux/fs.h> /* FIGETBSZ, FIBMAP, FS_IOC_FIEMAP */
18 #include <linux/msdos_fs.h> /* FAT_IOCTL_SET_ATTRIBUTES */
20 #undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */
22 #include <linux/ext2_fs.h> /* EXT2_IOC_* */
24 #ifndef FAT_IOCTL_GET_ATTRIBUTES
25 # define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32)
28 #ifndef FAT_IOCTL_SET_ATTRIBUTES
29 # define FAT_IOCTL_SET_ATTRIBUTES _IOW('r', 0x11, __u32)
32 #include <linux/fiemap.h> /* FIEMAP definitions */
35 # define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
40 #endif /* LIBINSTALLER_LINUXIOCTL_H */