extern.h revision 1.4
1/*	$OpenBSD: extern.h,v 1.4 2005/01/07 21:58:14 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_int32_t, char, struct disklabel *);
22void	display(FILE *, struct disklabel *, char **, char, int, u_int32_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;
32
33#ifdef DOSLABEL
34extern  struct dos_partition *dosdp;    /* DOS partition, if found */
35#endif
36