xref: /freebsd/sbin/quotacheck/quotacheck.h (revision 3b9401db6f4e152eea8a79fb9f0887b2c223cb70)
13b9401dbSMike Pritchard /*
23b9401dbSMike Pritchard  * Copyright (c) 1980, 1990, 1993
33b9401dbSMike Pritchard  *	The Regents of the University of California.  All rights reserved.
43b9401dbSMike Pritchard  *
53b9401dbSMike Pritchard  * This code is derived from software contributed to Berkeley by
63b9401dbSMike Pritchard  * Robert Elz at The University of Melbourne.
73b9401dbSMike Pritchard  *
83b9401dbSMike Pritchard  * Redistribution and use in source and binary forms, with or without
93b9401dbSMike Pritchard  * modification, are permitted provided that the following conditions
103b9401dbSMike Pritchard  * are met:
113b9401dbSMike Pritchard  * 1. Redistributions of source code must retain the above copyright
123b9401dbSMike Pritchard  *    notice, this list of conditions and the following disclaimer.
133b9401dbSMike Pritchard  * 2. Redistributions in binary form must reproduce the above copyright
143b9401dbSMike Pritchard  *    notice, this list of conditions and the following disclaimer in the
153b9401dbSMike Pritchard  *    documentation and/or other materials provided with the distribution.
163b9401dbSMike Pritchard  * 4. Neither the name of the University nor the names of its contributors
173b9401dbSMike Pritchard  *    may be used to endorse or promote products derived from this software
183b9401dbSMike Pritchard  *    without specific prior written permission.
193b9401dbSMike Pritchard  *
203b9401dbSMike Pritchard  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
213b9401dbSMike Pritchard  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
223b9401dbSMike Pritchard  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
233b9401dbSMike Pritchard  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
243b9401dbSMike Pritchard  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
253b9401dbSMike Pritchard  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
263b9401dbSMike Pritchard  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
273b9401dbSMike Pritchard  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
283b9401dbSMike Pritchard  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
293b9401dbSMike Pritchard  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
303b9401dbSMike Pritchard  * SUCH DAMAGE.
313b9401dbSMike Pritchard  *
323b9401dbSMike Pritchard  * $FreeBSD$
333b9401dbSMike Pritchard  */
343b9401dbSMike Pritchard 
353b9401dbSMike Pritchard struct quotaname {
363b9401dbSMike Pritchard 	long	flags;
373b9401dbSMike Pritchard 	char	grpqfname[PATH_MAX];
383b9401dbSMike Pritchard 	char	usrqfname[PATH_MAX];
393b9401dbSMike Pritchard };
403b9401dbSMike Pritchard 
413b9401dbSMike Pritchard extern int checkfstab();
423b9401dbSMike Pritchard extern int chkquota(char *, char *, struct quotaname *);
433b9401dbSMike Pritchard extern struct quotaname *needchk(struct fstab *);
44