extern unsigned int read_int(unsigned int low, unsigned int dflt,
unsigned int high, unsigned int base, char *mesg);
+extern unsigned char MBRbuffer[MAX_SECTOR_SIZE];
+extern unsigned int heads, cylinders, sector_size;
+extern unsigned long long sectors;
+extern char *partition_type(unsigned char type);
+extern void update_units(void);
+extern char read_chars(char *mesg);
+extern void set_changed(int);
+extern void set_all_unchanged(void);
#define PLURAL 0
#define SINGULAR 1
extern unsigned long long get_nr_sects(struct partition *p);
extern int osf_label;
+extern int sun_label;
+extern int sgi_label;
+extern int aix_label;
/* prototypes for fdiskbsdlabel.c */
extern void bselect(void);
+#ifndef FDISK_AIX_LABEL_H
+#define FDISK_AIX_LABEL_H
+
#include <linux/types.h> /* for __u32 etc */
/*
* Copyright (C) Andreas Neuper, Sep 1998.
/* fdisk.c */
#define aixlabel ((aix_partition *)MBRbuffer)
-extern unsigned char MBRbuffer[MAX_SECTOR_SIZE];
-extern char changed[MAXIMUM_PARTS];
-extern unsigned int heads, cylinders;
-extern unsigned long long sectors;
-extern int show_begin;
-extern int aix_label;
-extern char *partition_type(unsigned char type);
-extern void update_units(void);
-extern char read_chars(char *mesg);
/* fdiskaixlabel.c */
extern struct systypes aix_sys_types[];
-extern void aix_nolabel( void );
-extern int check_aix_label( void );
+extern void aix_nolabel( void );
+extern int check_aix_label( void );
+
+#endif /* FDISK_AIX_LABEL_H */
+#ifndef FDISK_BSD_LABEL_H
+#define FDISK_BSD_LABEL_H
+
/*
* Copyright (c) 1987, 1988 Regents of the University of California.
* All rights reserved.
#define BSD_D_RAMDISK 0x08 /* disk emulator */
#define BSD_D_CHAIN 0x10 /* can do back-back transfers */
#define BSD_D_DOSPART 0x20 /* within MSDOS partition */
+
+#endif /* FDISK_BSD_LABEL_H */
+#ifndef FDISK_SGI_LABEL_H
+#define FDISK_SGI_LABEL_H
+
#include <linux/types.h> /* for __u32 etc */
/*
* Copyright (C) Andreas Neuper, Sep 1998.
/* fdisk.c */
#define sgilabel ((sgi_partition *)MBRbuffer)
#define sgiparam (sgilabel->devparam)
-extern unsigned char MBRbuffer[MAX_SECTOR_SIZE];
-extern unsigned int heads, cylinders, sector_size;
-extern unsigned long long sectors;
-extern int show_begin;
-extern int sgi_label;
-extern char *partition_type(unsigned char type);
-extern void update_units(void);
-extern char read_chars(char *mesg);
-extern void set_changed(int);
/* fdisksgilabel.c */
extern struct systypes sgi_sys_types[];
-extern void sgi_nolabel( void );
-extern int check_sgi_label( void );
+extern void sgi_nolabel( void );
+extern int check_sgi_label( void );
extern void sgi_list_table( int xtra );
extern void sgi_change_sysid( int i, int sys );
extern unsigned int sgi_get_start_sector( int i );
extern int sgi_get_swappartition( void );
extern void sgi_set_bootfile( const char* aFile );
extern const char *sgi_get_bootfile( void );
+
+#endif /* FDISK_SGI_LABEL_H */
+#ifndef FDISK_SUN_LABEL_H
+#define FDISK_SUN_LABEL_H
+
#include <linux/types.h> /* for __u16, __u32 */
typedef struct {
: (__u16)(x))
#define SSWAP32(x) (other_endian ? __swap32(x) \
: (__u32)(x))
-
-/* fdisk.c */
-extern unsigned char MBRbuffer[MAX_SECTOR_SIZE];
-extern unsigned int heads, cylinders;
-extern unsigned long long sectors;
-extern int show_begin;
-extern int sun_label;
-extern char *partition_type(unsigned char type);
-extern void update_units(void);
-extern char read_chars(char *mesg);
-extern void set_all_unchanged(void);
-extern void set_changed(int);
-
/* fdisksunlabel.c */
#define SUNOS_SWAP 3
#define WHOLE_DISK 5
extern void sun_set_pcylcount(void);
extern void toggle_sunflags(int i, unsigned char mask);
+#endif /* FDISK_SUN_LABEL_H */