xref: /minix3/sbin/fsck/partutil.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc /*	$NetBSD: partutil.h,v 1.3 2014/12/29 16:27:43 christos Exp $	*/
24d4057d8SBen Gras 
34d4057d8SBen Gras /*-
44d4057d8SBen Gras  * Copyright (c) 2006 The NetBSD Foundation, Inc.
54d4057d8SBen Gras  * All rights reserved.
64d4057d8SBen Gras  *
74d4057d8SBen Gras  * This code is derived from software contributed to The NetBSD Foundation
84d4057d8SBen Gras  * by Christos Zoulas.
94d4057d8SBen Gras  *
104d4057d8SBen Gras  * Redistribution and use in source and binary forms, with or without
114d4057d8SBen Gras  * modification, are permitted provided that the following conditions
124d4057d8SBen Gras  * are met:
134d4057d8SBen Gras  * 1. Redistributions of source code must retain the above copyright
144d4057d8SBen Gras  *    notice, this list of conditions and the following disclaimer.
154d4057d8SBen Gras  * 2. Redistributions in binary form must reproduce the above copyright
164d4057d8SBen Gras  *    notice, this list of conditions and the following disclaimer in the
174d4057d8SBen Gras  *    documentation and/or other materials provided with the distribution.
184d4057d8SBen Gras  *
194d4057d8SBen Gras  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
204d4057d8SBen Gras  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
214d4057d8SBen Gras  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
224d4057d8SBen Gras  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
234d4057d8SBen Gras  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
244d4057d8SBen Gras  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
254d4057d8SBen Gras  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
264d4057d8SBen Gras  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
274d4057d8SBen Gras  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
284d4057d8SBen Gras  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
294d4057d8SBen Gras  * POSSIBILITY OF SUCH DAMAGE.
304d4057d8SBen Gras  */
314d4057d8SBen Gras #ifndef _PARTUTIL_H_
324d4057d8SBen Gras #define _PARTUTIL_H_
334d4057d8SBen Gras 
344d4057d8SBen Gras __BEGIN_DECLS
35*0a6a1f1dSLionel Sambuc struct dkwedge_info;
36*0a6a1f1dSLionel Sambuc struct disk_geom;
374d4057d8SBen Gras int getdiskinfo(const char *, int, const char *,
384d4057d8SBen Gras     struct disk_geom *, struct dkwedge_info *);
39*0a6a1f1dSLionel Sambuc int getdisksize(const char *, u_int *, off_t *);
404d4057d8SBen Gras __END_DECLS
414d4057d8SBen Gras 
424d4057d8SBen Gras #endif /* _PARTUTIL_H_ */
43