Move modify_adv() into common code
[profile/ivi/syslinux.git] / libinstaller / linuxioctl.h
1 /*
2  * linuxioctl.h
3  *
4  * Wrapper for Linux ioctl definitions, including workarounds
5  */
6
7 #ifndef LIBINSTALLER_LINUXIOCTL_H
8 #define LIBINSTALLER_LINUXIOCTL_H
9
10 #include <sys/ioctl.h>
11
12 #define statfs _kernel_statfs   /* HACK to deal with broken 2.4 distros */
13
14 #include <linux/fd.h>           /* Floppy geometry */
15 #include <linux/hdreg.h>        /* Hard disk geometry */
16
17 #include <linux/fs.h>           /* FIGETBSZ, FIBMAP, FS_IOC_FIEMAP */
18 #include <linux/msdos_fs.h>     /* FAT_IOCTL_SET_ATTRIBUTES */
19
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_* */
23
24 #ifndef FAT_IOCTL_GET_ATTRIBUTES
25 # define FAT_IOCTL_GET_ATTRIBUTES       _IOR('r', 0x10, __u32)
26 #endif
27
28 #ifndef FAT_IOCTL_SET_ATTRIBUTES
29 # define FAT_IOCTL_SET_ATTRIBUTES       _IOW('r', 0x11, __u32)
30 #endif
31
32 #include <linux/fiemap.h>       /* FIEMAP definitions */
33
34 #ifndef FS_IOC_FIEMAP
35 # define FS_IOC_FIEMAP          _IOWR('f', 11, struct fiemap)
36 #endif
37
38 #undef statfs
39
40 #endif /* LIBINSTALLER_LINUXIOCTL_H */