summaryrefslogtreecommitdiffstats
path: root/fdisk/common.h
blob: 86802c41e26a9e92ede70292337a8d4126ae3da7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* 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 */
#define BLKSSZGET  _IO(0x12,104)   /* get block device sector size */

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

extern struct systypes i386_sys_types[];

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