extern.h revision 256281
1196200Sscottl/*- 2196200Sscottl * Copyright (c) 1991, 1993 3196200Sscottl * The Regents of the University of California. All rights reserved. 4196200Sscottl * 5196200Sscottl * Redistribution and use in source and binary forms, with or without 6196200Sscottl * modification, are permitted provided that the following conditions 7196200Sscottl * are met: 8196200Sscottl * 1. Redistributions of source code must retain the above copyright 9196200Sscottl * notice, this list of conditions and the following disclaimer. 10196200Sscottl * 2. Redistributions in binary form must reproduce the above copyright 11196200Sscottl * notice, this list of conditions and the following disclaimer in the 12196200Sscottl * documentation and/or other materials provided with the distribution. 13196200Sscottl * 3. Neither the name of the University nor the names of its contributors 14196200Sscottl * may be used to endorse or promote products derived from this software 15196200Sscottl * without specific prior written permission. 16196200Sscottl * 17196200Sscottl * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 18196200Sscottl * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19196200Sscottl * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20196200Sscottl * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21196200Sscottl * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22196200Sscottl * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23196200Sscottl * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24196200Sscottl * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25196200Sscottl * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26196200Sscottl * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27196200Sscottl * SUCH DAMAGE. 28196200Sscottl * 29196200Sscottl * @(#)extern.h 8.1 (Berkeley) 6/6/93 30196200Sscottl * $FreeBSD: stable/10/usr.sbin/mtree/extern.h 124389 2004-01-11 19:38:48Z phk $ 31196200Sscottl */ 32196200Sscottlextern uint32_t crc_total; 33196200Sscottl 34196200Sscottl#ifdef _FTS_H_ 35237589Seadlerint compare(char *, NODE *, FTSENT *); 36196200Sscottl#endif 37196200Sscottlint crc(int, uint32_t *, off_t *); 38196200Sscottlvoid cwalk(void); 39196200Sscottlchar *flags_to_string(u_long); 40196200Sscottl 41196200Sscottlconst char *inotype(u_int); 42196200Sscottlu_int parsekey(char *, int *); 43196200Sscottlchar *rlink(char *); 44196200SscottlNODE *mtree_readspec(FILE *fi); 45196200Sscottlint mtree_verifyspec(FILE *fi); 46196200Sscottlint mtree_specspec(FILE *fi, FILE *fj); 47196200Sscottl 48196200Sscottlint check_excludes(const char *, const char *); 49196200Sscottlvoid init_excludes(void); 50196200Sscottlvoid read_excludes_file(const char *); 51196200Sscottlconst char * ftype(u_int type); 52196200Sscottl 53196200Sscottlextern int ftsoptions; 54196200Sscottlextern u_int keys; 55196200Sscottlextern int lineno; 56196200Sscottlextern int dflag, eflag, iflag, nflag, qflag, rflag, sflag, uflag, wflag; 57196200Sscottl#ifdef MAXPATHLEN 58196200Sscottlextern char fullpath[MAXPATHLEN]; 59196200Sscottl#endif 60196200Sscottl