/* $NetBSD: fsutil.h,v 1.114 2009/10/21 01:07:46 snj Exp $ */12/*-3* SPDX-License-Identifier: BSD-2-Clause4*5* Copyright (c) 1996 Christos Zoulas. All rights reserved.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted provided that the following conditions9* are met:10* 1. Redistributions of source code must retain the above copyright11* notice, this list of conditions and the following disclaimer.12* 2. Redistributions in binary form must reproduce the above copyright13* notice, this list of conditions and the following disclaimer in the14* documentation and/or other materials provided with the distribution.15*16* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR17* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES18* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.19* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,20* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT21* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,22* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY23* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF25* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.26*/2728struct fstab;29int checkfstab(int, int (*)(struct fstab *),30int (*) (const char *, const char *, const char *, const char *, pid_t *));31int getfsopt(struct fstab *, const char *);32void pfatal(const char *, ...) __printflike(1, 2);33void pwarn(const char *, ...) __printflike(1, 2);34void perr(const char *, ...) __printflike(1, 2);35void panic(const char *, ...) __dead2 __printflike(1, 2);36const char *devcheck(const char *);37const char *cdevname(void);38void setcdevname(const char *, int);39void *emalloc(size_t);40void *erealloc(void *, size_t);41char *estrdup(const char *);4243#define CHECK_PREEN 0x000144#define CHECK_VERBOSE 0x000245#define CHECK_DEBUG 0x000446#define CHECK_BACKGRD 0x000847#define DO_BACKGRD 0x001048#define CHECK_CLEAN 0x0020495051