summaryrefslogtreecommitdiff
path: root/libinstaller/syslxcom.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-16 11:44:27 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-16 11:44:27 -0700
commit51735fc532ba1ed079a30ba9734936bf2670c87b (patch)
tree67ef80d1c9dc632266bff968b2120b11c96ca14e /libinstaller/syslxcom.c
parent76d5e47c0ddec4f5d792d8753056ab46e5fc9e8c (diff)
downloadsyslinux-51735fc532ba1ed079a30ba9734936bf2670c87b.tar.gz
Move Linux ioctl header magic into a single file
Put all the Linux ioctl header magic into a single shared file, and try to make it as generally useful as possible. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'libinstaller/syslxcom.c')
-rw-r--r--libinstaller/syslxcom.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/libinstaller/syslxcom.c b/libinstaller/syslxcom.c
index 85b3f6ea..b176f6d7 100644
--- a/libinstaller/syslxcom.c
+++ b/libinstaller/syslxcom.c
@@ -26,15 +26,11 @@
#include <getopt.h>
#include <unistd.h>
#include <errno.h>
-#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/vfs.h>
-#include <linux/fs.h> /* FIGETBSZ, FIBMAP */
-#include <linux/msdos_fs.h> /* FAT_IOCTL_SET_ATTRIBUTES */
-#undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */
-#include <linux/fiemap.h> /* FIEMAP definitions */
+#include "linuxioctl.h"
#include "syslxcom.h"
const char *program;
@@ -48,15 +44,6 @@ int fs_type;
#endif
#define SECTOR_SHIFT 9
-#define EXT2_IMMUTABLE_FL 0x00000010 /* Immutable file */
-
-/*
- * ioctl commands
- */
-#define EXT2_IOC_GETFLAGS _IOR('f', 1, long)
-#define EXT2_IOC_SETFLAGS _IOW('f', 2, long)
-#define EXT2_IOC_GETVERSION _IOR('v', 1, long)
-#define EXT2_IOC_SETVERSION _IOW('v', 2, long)
static void die(const char *msg)
{