quotacheck.h revision 175678
1226633Sdim/* 2224133Sdim * Copyright (c) 1980, 1990, 1993 3224133Sdim * The Regents of the University of California. All rights reserved. 4224133Sdim * 5224133Sdim * This code is derived from software contributed to Berkeley by 6224133Sdim * Robert Elz at The University of Melbourne. 7224133Sdim * 8224133Sdim * Redistribution and use in source and binary forms, with or without 9224133Sdim * modification, are permitted provided that the following conditions 10224133Sdim * are met: 11224133Sdim * 1. Redistributions of source code must retain the above copyright 12224133Sdim * notice, this list of conditions and the following disclaimer. 13224133Sdim * 2. Redistributions in binary form must reproduce the above copyright 14224133Sdim * notice, this list of conditions and the following disclaimer in the 15224133Sdim * documentation and/or other materials provided with the distribution. 16239462Sdim * 4. Neither the name of the University nor the names of its contributors 17234353Sdim * may be used to endorse or promote products derived from this software 18224133Sdim * without specific prior written permission. 19224133Sdim * 20234353Sdim * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21234353Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22224133Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23224133Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24224133Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25224133Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26249423Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27224133Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28224133Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29263508Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30263508Sdim * SUCH DAMAGE. 31263508Sdim * 32263508Sdim * $FreeBSD: head/sbin/quotacheck/quotacheck.h 175678 2008-01-26 12:03:26Z mpp $ 33263508Sdim */ 34263508Sdim 35224133Sdimstruct quotaname { 36224133Sdim long flags; 37224133Sdim char grpqfname[PATH_MAX]; 38224133Sdim char usrqfname[PATH_MAX]; 39224133Sdim}; 40224133Sdim 41224133Sdimextern int checkfstab(); 42224133Sdimextern int chkquota(char *, char *, struct quotaname *); 43224133Sdimextern struct quotaname *needchk(struct fstab *); 44224133Sdim