summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.h
diff options
context:
space:
mode:
authorKarel Zak2013-06-25 15:58:36 +0200
committerKarel Zak2013-09-16 16:47:04 +0200
commitc37ebc12a5d7fd9c824a727215ceeb7f0243d9c3 (patch)
tree6aedf7d74a2c75902405d389a197d8c58c3e550a /fdisks/fdisk.h
parentfdisk: (dos) add dos menu callback (diff)
downloadkernel-qcow2-util-linux-c37ebc12a5d7fd9c824a727215ceeb7f0243d9c3.tar.gz
kernel-qcow2-util-linux-c37ebc12a5d7fd9c824a727215ceeb7f0243d9c3.tar.xz
kernel-qcow2-util-linux-c37ebc12a5d7fd9c824a727215ceeb7f0243d9c3.zip
fdisk: cleanup header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.h')
-rw-r--r--fdisks/fdisk.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/fdisks/fdisk.h b/fdisks/fdisk.h
index 23c4e3f0a..5aaf0f2eb 100644
--- a/fdisks/fdisk.h
+++ b/fdisks/fdisk.h
@@ -55,38 +55,11 @@ extern int ask_callback(struct fdisk_context *cxt, struct fdisk_ask *ask,
extern void list_partition_types(struct fdisk_context *cxt);
extern struct fdisk_parttype *ask_partition_type(struct fdisk_context *cxt);
extern void reread_partition_table(struct fdisk_context *cxt, int leave);
-extern unsigned int read_int(struct fdisk_context *cxt,
- unsigned int low, unsigned int dflt,
- unsigned int high, unsigned int base, char *mesg);
extern char *partition_type(struct fdisk_context *cxt, unsigned char type);
-extern char read_chars(struct fdisk_context *cxt, char *mesg);
extern int warn_geometry(struct fdisk_context *cxt);
extern void toggle_dos_compatibility_flag(struct fdisk_context *cxt);
extern void warn_limits(struct fdisk_context *cxt);
-extern unsigned int read_int_with_suffix(struct fdisk_context *cxt,
- unsigned int low, unsigned int dflt, unsigned int high,
- unsigned int base, char *mesg, int *is_suffix_used);
extern int nowarn;
-
-static inline int seek_sector(struct fdisk_context *cxt, sector_t secno)
-{
- off_t offset = (off_t) secno * cxt->sector_size;
-
- return lseek(cxt->dev_fd, offset, SEEK_SET) == (off_t) -1 ? -errno : 0;
-}
-
-static inline int read_sector(struct fdisk_context *cxt, sector_t secno, unsigned char *buf)
-{
- int rc = seek_sector(cxt, secno);
-
- if (rc < 0)
- return rc;
-
- return read(cxt->dev_fd, buf, cxt->sector_size) !=
- (ssize_t) cxt->sector_size ? -errno : 0;
-}
-
-