extern.h revision 1.6
1/*	$OpenBSD: extern.h,v 1.6 2007/06/08 18:42:17 otto 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 **, char, int, u_int64_t);
23void	display_partition(FILE *, struct disklabel *, char **, int, char);
24
25struct disklabel *readlabel(int);
26struct disklabel *makebootarea(char *, struct disklabel *, int);
27int	editor(struct disklabel *, int, char *, char *);
28
29int	writelabel(int, char *, struct disklabel *);
30extern  char bootarea[], *specname;
31extern  int donothing;
32extern  int dflag;
33
34#ifdef DOSLABEL
35extern  struct dos_partition *dosdp;    /* DOS partition, if found */
36#endif
37