]> git.ipfire.org Git - thirdparty/util-linux.git/blob - fdisk/common.h
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / fdisk / common.h
1 /* common stuff for fdisk, cfdisk, sfdisk */
2
3 /* including <linux/fs.h> fails */
4 #include <sys/ioctl.h>
5 #define BLKRRPART _IO(0x12,95) /* re-read partition table */
6 #define BLKGETSIZE _IO(0x12,96) /* return device size */
7 #define BLKFLSBUF _IO(0x12,97) /* flush buffer cache */
8 #define BLKSSZGET _IO(0x12,104) /* get block device sector size */
9
10 struct systypes {
11 unsigned char type;
12 char *name;
13 };
14
15 extern struct systypes i386_sys_types[];
16
17 extern char *partname(char *dev, int pno, int lth);