-STATIC_SGI void sgi_change_sysid(int i, int sys);
-STATIC_SGI void sgi_list_table(int xtra);
-#if ENABLE_FEATURE_FDISK_ADVANCED
-STATIC_SGI void sgi_set_xcyl(void);
-#endif
-STATIC_SGI int verify_sgi(int verbose);
-STATIC_SGI void sgi_add_partition(int n, int sys);
-STATIC_SGI void sgi_set_swappartition(int i);
-STATIC_SGI const char *sgi_get_bootfile(void);
-STATIC_SGI void sgi_set_bootfile(const char* aFile);
-STATIC_SGI void create_sgiinfo(void);
-STATIC_SGI void sgi_write_table(void);
-STATIC_SGI void sgi_set_bootpartition(int i);
-#include "fdisk_sgi.c"
-
-STATIC_SUN const char *const sun_sys_types[];
-STATIC_SUN void sun_delete_partition(int i);
-STATIC_SUN void sun_change_sysid(int i, int sys);
-STATIC_SUN void sun_list_table(int xtra);
-STATIC_SUN void add_sun_partition(int n, int sys);
-#if ENABLE_FEATURE_FDISK_ADVANCED
-STATIC_SUN void sun_set_alt_cyl(void);
-STATIC_SUN void sun_set_ncyl(int cyl);
-STATIC_SUN void sun_set_xcyl(void);
-STATIC_SUN void sun_set_ilfact(void);
-STATIC_SUN void sun_set_rspeed(void);
-STATIC_SUN void sun_set_pcylcount(void);
-#endif
-STATIC_SUN void toggle_sunflags(int i, unsigned char mask);
-STATIC_SUN void verify_sun(void);
-STATIC_SUN void sun_write_table(void);
-#include "fdisk_sun.c"
-
-/* DOS partition types */
-
-static const char *const i386_sys_types[] = {
- "\x00" "Empty",
- "\x01" "FAT12",
- "\x04" "FAT16 <32M",
- "\x05" "Extended", /* DOS 3.3+ extended partition */
- "\x06" "FAT16", /* DOS 16-bit >=32M */
- "\x07" "HPFS/NTFS", /* OS/2 IFS, eg, HPFS or NTFS or QNX */
- "\x0a" "OS/2 Boot Manager",/* OS/2 Boot Manager */
- "\x0b" "Win95 FAT32",
- "\x0c" "Win95 FAT32 (LBA)",/* LBA really is 'Extended Int 13h' */
- "\x0e" "Win95 FAT16 (LBA)",
- "\x0f" "Win95 Ext'd (LBA)",
- "\x11" "Hidden FAT12",
- "\x12" "Compaq diagnostics",
- "\x14" "Hidden FAT16 <32M",
- "\x16" "Hidden FAT16",
- "\x17" "Hidden HPFS/NTFS",
- "\x1b" "Hidden Win95 FAT32",
- "\x1c" "Hidden W95 FAT32 (LBA)",
- "\x1e" "Hidden W95 FAT16 (LBA)",
- "\x3c" "Part.Magic recovery",
- "\x41" "PPC PReP Boot",
- "\x42" "SFS",
- "\x63" "GNU HURD or SysV", /* GNU HURD or Mach or Sys V/386 (such as ISC UNIX) */
- "\x80" "Old Minix", /* Minix 1.4a and earlier */
- "\x81" "Minix / old Linux",/* Minix 1.4b and later */
- "\x82" "Linux swap", /* also Solaris */
- "\x83" "Linux",
- "\x84" "OS/2 hidden C: drive",
- "\x85" "Linux extended",
- "\x86" "NTFS volume set",
- "\x87" "NTFS volume set",
- "\x8e" "Linux LVM",
- "\x9f" "BSD/OS", /* BSDI */
- "\xa0" "Thinkpad hibernation",
- "\xa5" "FreeBSD", /* various BSD flavours */
- "\xa6" "OpenBSD",
- "\xa8" "Darwin UFS",
- "\xa9" "NetBSD",
- "\xab" "Darwin boot",
- "\xb7" "BSDI fs",
- "\xb8" "BSDI swap",
- "\xbe" "Solaris boot",
- "\xeb" "BeOS fs",
- "\xee" "EFI GPT", /* Intel EFI GUID Partition Table */
- "\xef" "EFI (FAT-12/16/32)", /* Intel EFI System Partition */
- "\xf0" "Linux/PA-RISC boot", /* Linux/PA-RISC boot loader */
- "\xf2" "DOS secondary", /* DOS 3.3+ secondary */
- "\xfd" "Linux raid autodetect", /* New (2.2.x) raid partition with
- autodetect using persistent
- superblock */
-#if 0 /* ENABLE_WEIRD_PARTITION_TYPES */
- "\x02" "XENIX root",
- "\x03" "XENIX usr",
- "\x08" "AIX", /* AIX boot (AIX -- PS/2 port) or SplitDrive */
- "\x09" "AIX bootable", /* AIX data or Coherent */
- "\x10" "OPUS",
- "\x18" "AST SmartSleep",
- "\x24" "NEC DOS",
- "\x39" "Plan 9",
- "\x40" "Venix 80286",
- "\x4d" "QNX4.x",
- "\x4e" "QNX4.x 2nd part",
- "\x4f" "QNX4.x 3rd part",
- "\x50" "OnTrack DM",
- "\x51" "OnTrack DM6 Aux1", /* (or Novell) */
- "\x52" "CP/M", /* CP/M or Microport SysV/AT */
- "\x53" "OnTrack DM6 Aux3",
- "\x54" "OnTrackDM6",
- "\x55" "EZ-Drive",
- "\x56" "Golden Bow",
- "\x5c" "Priam Edisk",
- "\x61" "SpeedStor",
- "\x64" "Novell Netware 286",
- "\x65" "Novell Netware 386",
- "\x70" "DiskSecure Multi-Boot",
- "\x75" "PC/IX",
- "\x93" "Amoeba",
- "\x94" "Amoeba BBT", /* (bad block table) */
- "\xa7" "NeXTSTEP",
- "\xbb" "Boot Wizard hidden",
- "\xc1" "DRDOS/sec (FAT-12)",
- "\xc4" "DRDOS/sec (FAT-16 < 32M)",
- "\xc6" "DRDOS/sec (FAT-16)",
- "\xc7" "Syrinx",
- "\xda" "Non-FS data",
- "\xdb" "CP/M / CTOS / ...",/* CP/M or Concurrent CP/M or
- Concurrent DOS or CTOS */
- "\xde" "Dell Utility", /* Dell PowerEdge Server utilities */
- "\xdf" "BootIt", /* BootIt EMBRM */
- "\xe1" "DOS access", /* DOS access or SpeedStor 12-bit FAT
- extended partition */
- "\xe3" "DOS R/O", /* DOS R/O or SpeedStor */
- "\xe4" "SpeedStor", /* SpeedStor 16-bit FAT extended
- partition < 1024 cyl. */
- "\xf1" "SpeedStor",
- "\xf4" "SpeedStor", /* SpeedStor large partition */
- "\xfe" "LANstep", /* SpeedStor >1024 cyl. or LANstep */
- "\xff" "BBT", /* Xenix Bad Block Table */