File: linuxioctl.h

package info (click to toggle)
syslinux 2:4.05+dfsg-6+deb7u1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 25,684 kB
  • sloc: ansic: 276,159; asm: 9,973; pascal: 9,907; perl: 3,492; makefile: 1,736; sh: 626; python: 266; xml: 39
file content (47 lines) | stat: -rw-r--r-- 1,195 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * linuxioctl.h
 *
 * Wrapper for Linux ioctl definitions, including workarounds
 */

#ifndef LIBINSTALLER_LINUXIOCTL_H
#define LIBINSTALLER_LINUXIOCTL_H

#include <sys/ioctl.h>

#define statfs _kernel_statfs	/* HACK to deal with broken 2.4 distros */

#include <linux/fd.h>		/* Floppy geometry */
#include <linux/hdreg.h>	/* Hard disk geometry */

#include <linux/fs.h>		/* FIGETBSZ, FIBMAP, FS_IOC_FIEMAP */
#include <linux/msdos_fs.h>	/* FAT_IOCTL_SET_ATTRIBUTES */

#undef SECTOR_SIZE		/* Defined in msdos_fs.h for no good reason */
#undef SECTOR_BITS
#include <ext2fs/ext2_fs.h>	/* EXT2_IOC_* */

#ifndef FAT_IOCTL_GET_ATTRIBUTES
# define FAT_IOCTL_GET_ATTRIBUTES	_IOR('r', 0x10, __u32)
#endif

#ifndef FAT_IOCTL_SET_ATTRIBUTES
# define FAT_IOCTL_SET_ATTRIBUTES	_IOW('r', 0x11, __u32)
#endif

#include <linux/fiemap.h>	/* FIEMAP definitions */

#ifndef FS_IOC_FIEMAP
# define FS_IOC_FIEMAP		_IOWR('f', 11, struct fiemap)
#endif

#undef statfs

#if defined(__linux__) && !defined(BLKGETSIZE64)
/* This takes a u64, but the size field says size_t.  Someone screwed big. */
# define BLKGETSIZE64 _IOR(0x12,114,size_t)
#endif

#include <linux/loop.h>

#endif /* LIBINSTALLER_LINUXIOCTL_H */