extern.h revision 1.14
1/* $OpenBSD: extern.h,v 1.14 2009/04/12 01:01:24 krw Exp $ */ 2 3/* 4 * Copyright (c) 2003 Theo de Raadt <deraadt@openbsd.org> 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19u_short dkcksum(struct disklabel *); 20int checklabel(struct disklabel *); 21double scale(u_int64_t, char, struct disklabel *); 22void display(FILE *, struct disklabel *, char, int); 23void display_partition(FILE *, struct disklabel *, int, char); 24 25void readlabel(int); 26struct disklabel *makebootarea(char *, struct disklabel *, int); 27int editor(struct disklabel *, int); 28 29int writelabel(int, char *, struct disklabel *); 30extern char bootarea[], *specname, *fstabfile; 31extern char *mountpoints[MAXPARTITIONS]; 32extern int donothing; 33extern int dflag; 34extern int verbose; 35extern char print_unit; 36 37#ifdef DOSLABEL 38extern struct dos_partition *dosdp; /* DOS partition, if found */ 39#endif 40#ifdef DPMELABEL 41extern int dpme_label; /* nonzero if DPME table */ 42extern uint32_t dpme_obsd_start, dpme_obsd_size; /* OpenBSD DPME boundaries */ 43#endif 44