Adding upstream version 4.00~pre61+dfsg.
[syslinux-debian/hramrach.git] / libinstaller / linuxioctl.h
blobe4284df7a44eb2862764fc8d22492018f071f2db
1 /*
2 * linuxioctl.h
4 * Wrapper for Linux ioctl definitions, including workarounds
5 */
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 */
21 #undef SECTOR_BITS
22 #include <linux/ext2_fs.h> /* EXT2_IOC_* */
24 #ifndef FAT_IOCTL_GET_ATTRIBUTES
25 # define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32)
26 #endif
28 #ifndef FAT_IOCTL_SET_ATTRIBUTES
29 # define FAT_IOCTL_SET_ATTRIBUTES _IOW('r', 0x11, __u32)
30 #endif
32 #include <linux/fiemap.h> /* FIEMAP definitions */
34 #ifndef FS_IOC_FIEMAP
35 # define FS_IOC_FIEMAP _IOWR('f', 11, struct fiemap)
36 #endif
38 #undef statfs
40 #endif /* LIBINSTALLER_LINUXIOCTL_H */