summaryrefslogtreecommitdiffstats
path: root/fdisk/common.h
blob: c5e237148e98595c29a81308485acdf2762ecc4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* common stuff for fdisk, cfdisk, sfdisk */

/* including <linux/fs.h> fails */
#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 */

struct systypes {
	unsigned char type;
	char *name;
};

extern struct systypes i386_sys_types[];

extern char *partname(char *dev, int pno, int lth);