1241806Suqs/* $NetBSD: fsutil.h,v 1.114 2009/10/21 01:07:46 snj Exp $ */ 266868Sadrian 366868Sadrian/* 466868Sadrian * Copyright (c) 1996 Christos Zoulas. All rights reserved. 566868Sadrian * 666868Sadrian * Redistribution and use in source and binary forms, with or without 766868Sadrian * modification, are permitted provided that the following conditions 866868Sadrian * are met: 966868Sadrian * 1. Redistributions of source code must retain the above copyright 1066868Sadrian * notice, this list of conditions and the following disclaimer. 1166868Sadrian * 2. Redistributions in binary form must reproduce the above copyright 1266868Sadrian * notice, this list of conditions and the following disclaimer in the 1366868Sadrian * documentation and/or other materials provided with the distribution. 1466868Sadrian * 1566868Sadrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1666868Sadrian * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1766868Sadrian * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1866868Sadrian * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 1966868Sadrian * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2066868Sadrian * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2166868Sadrian * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2266868Sadrian * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2366868Sadrian * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2466868Sadrian * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2566868Sadrian * 2666868Sadrian * $FreeBSD$ 2766868Sadrian */ 2866868Sadrian 29123890Sbdevoid pfatal(const char *, ...) __printflike(1, 2); 30123890Sbdevoid pwarn(const char *, ...) __printflike(1, 2); 31241806Suqsvoid perr(const char *, ...) __printflike(1, 2); 32123890Sbdevoid panic(const char *, ...) __dead2 __printflike(1, 2); 3392839Simpconst char *devcheck(const char *); 3492839Simpconst char *cdevname(void); 3592839Simpvoid setcdevname(const char *, int); 3692839Simpstruct statfs *getmntpt(const char *); 3792839Simpvoid *emalloc(size_t); 3892839Simpvoid *erealloc(void *, size_t); 3992839Simpchar *estrdup(const char *); 4066868Sadrian 4175936Smckusick#define CHECK_PREEN 0x0001 4275936Smckusick#define CHECK_VERBOSE 0x0002 4375936Smckusick#define CHECK_DEBUG 0x0004 4475936Smckusick#define CHECK_BACKGRD 0x0008 4575936Smckusick#define DO_BACKGRD 0x0010 46187931Sobrien#define CHECK_CLEAN 0x0020 4766868Sadrian 4866868Sadrianstruct fstab; 4992839Simpint checkfstab(int, int (*)(struct fstab *), 50241807Suqs int (*) (const char *, const char *, const char *, const char *, pid_t *)); 51