diff options
Diffstat (limited to 'fdisk/common.h')
-rw-r--r-- | fdisk/common.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/fdisk/common.h b/fdisk/common.h index cc5a04cd..380bbc39 100644 --- a/fdisk/common.h +++ b/fdisk/common.h @@ -7,25 +7,6 @@ #define PATH_DEV_BYID "/dev/disk/by-id" #define PATH_DEV_BYPATH "/dev/disk/by-path" -/* including <linux/fs.h> fails */ -#include <sys/types.h> -#include <sys/ioctl.h> -#define BLKRRPART _IO(0x12,95) /* re-read partition table */ -#define BLKGETSIZE _IO(0x12,96) /* return device size */ -#define BLKFLSBUF _IO(0x12,97) /* flush buffer cache */ -#define BLKSSZGET _IO(0x12,104) /* get block device sector size */ -#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* size in bytes */ - -/* including <linux/hdreg.h> also fails */ -struct hd_geometry { - unsigned char heads; - unsigned char sectors; - unsigned short cylinders; - unsigned long start; -}; - -#define HDIO_GETGEO 0x0301 /* get device geometry */ - struct systypes { unsigned char type; char *name; @@ -36,6 +17,4 @@ extern struct systypes i386_sys_types[]; extern char *partname(char *dev, int pno, int lth); extern int is_probably_full_disk(char *name); -int disksize(int fd, unsigned long long *sectors); - #endif /* FDISK_COMMON_H */ |