xref: /netbsd-src/sbin/fsck/partutil.h (revision 59069b7aaba05339e0efb7a2c49b5cf0f13ed624)
1*59069b7aSchristos /*	$NetBSD: partutil.h,v 1.3 2014/12/29 16:27:43 christos Exp $	*/
209e8908eSchristos 
309e8908eSchristos /*-
409e8908eSchristos  * Copyright (c) 2006 The NetBSD Foundation, Inc.
509e8908eSchristos  * All rights reserved.
609e8908eSchristos  *
709e8908eSchristos  * This code is derived from software contributed to The NetBSD Foundation
809e8908eSchristos  * by Christos Zoulas.
909e8908eSchristos  *
1009e8908eSchristos  * Redistribution and use in source and binary forms, with or without
1109e8908eSchristos  * modification, are permitted provided that the following conditions
1209e8908eSchristos  * are met:
1309e8908eSchristos  * 1. Redistributions of source code must retain the above copyright
1409e8908eSchristos  *    notice, this list of conditions and the following disclaimer.
1509e8908eSchristos  * 2. Redistributions in binary form must reproduce the above copyright
1609e8908eSchristos  *    notice, this list of conditions and the following disclaimer in the
1709e8908eSchristos  *    documentation and/or other materials provided with the distribution.
1809e8908eSchristos  *
1909e8908eSchristos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
2009e8908eSchristos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2109e8908eSchristos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2209e8908eSchristos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2309e8908eSchristos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2409e8908eSchristos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2509e8908eSchristos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2609e8908eSchristos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2709e8908eSchristos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2809e8908eSchristos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2909e8908eSchristos  * POSSIBILITY OF SUCH DAMAGE.
3009e8908eSchristos  */
3109e8908eSchristos #ifndef _PARTUTIL_H_
3209e8908eSchristos #define _PARTUTIL_H_
3309e8908eSchristos 
3409e8908eSchristos __BEGIN_DECLS
35*59069b7aSchristos struct dkwedge_info;
36*59069b7aSchristos struct disk_geom;
3709e8908eSchristos int getdiskinfo(const char *, int, const char *,
3809e8908eSchristos     struct disk_geom *, struct dkwedge_info *);
39*59069b7aSchristos int getdisksize(const char *, u_int *, off_t *);
4009e8908eSchristos __END_DECLS
4109e8908eSchristos 
4209e8908eSchristos #endif /* _PARTUTIL_H_ */
43