xref: /netbsd/sbin/disklabel/extern.h (revision 2d3fc798)
1*2d3fc798Smatt /*	$NetBSD: extern.h,v 1.13 2013/05/03 16:05:12 matt Exp $	*/
272fbacb3Schristos 
372fbacb3Schristos /*
472fbacb3Schristos  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
572fbacb3Schristos  *
672fbacb3Schristos  * Redistribution and use in source and binary forms, with or without
772fbacb3Schristos  * modification, are permitted provided that the following conditions
872fbacb3Schristos  * are met:
972fbacb3Schristos  * 1. Redistributions of source code must retain the above copyright
1072fbacb3Schristos  *    notice, this list of conditions and the following disclaimer.
1172fbacb3Schristos  * 2. Redistributions in binary form must reproduce the above copyright
1272fbacb3Schristos  *    notice, this list of conditions and the following disclaimer in the
1372fbacb3Schristos  *    documentation and/or other materials provided with the distribution.
1472fbacb3Schristos  *
1572fbacb3Schristos  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1672fbacb3Schristos  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1772fbacb3Schristos  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1872fbacb3Schristos  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1972fbacb3Schristos  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2072fbacb3Schristos  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2172fbacb3Schristos  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2272fbacb3Schristos  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2372fbacb3Schristos  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2472fbacb3Schristos  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2572fbacb3Schristos  */
2672fbacb3Schristos 
2765151c95Sdsl int	writelabel(int, struct disklabel *);
2835ccd223Slukem int	checklabel(struct disklabel *);
291c5cb88eSlukem void	showinfo(FILE *, struct disklabel *, const char *);
301c5cb88eSlukem void	showpartitions(FILE *, struct disklabel *, int);
3179569512Schristos void	showpartition(FILE *, struct disklabel *, int, int);
3235ccd223Slukem void	interact(struct disklabel *, int);
3391af0d68Sjmmv int	list_fs_types(void);
3435ccd223Slukem 
35*2d3fc798Smatt extern	u_int	maxpartitions;
3665151c95Sdsl extern	char	specname[];
371c5cb88eSlukem extern	int	 Cflag;
388aede6bfSchristos 
398aede6bfSchristos #ifdef HAVE_NBTOOL_CONFIG_H
40*2d3fc798Smatt #define	dk_ioctl(f, cmd, arg)	(errno = ENOTTY, -1)
418aede6bfSchristos #else
42*2d3fc798Smatt int	dk_ioctl(int, u_long cmd, void *);
43*2d3fc798Smatt #endif
44