extern.h revision 122141
1155408Srwatson/*- 2155408Srwatson * Copyright (c) 1991, 1993 3155408Srwatson * The Regents of the University of California. All rights reserved. 4155408Srwatson * 5155408Srwatson * Redistribution and use in source and binary forms, with or without 6155408Srwatson * modification, are permitted provided that the following conditions 7155408Srwatson * are met: 8155408Srwatson * 1. Redistributions of source code must retain the above copyright 9155408Srwatson * notice, this list of conditions and the following disclaimer. 10155408Srwatson * 2. Redistributions in binary form must reproduce the above copyright 11155408Srwatson * notice, this list of conditions and the following disclaimer in the 12155408Srwatson * documentation and/or other materials provided with the distribution. 13155408Srwatson * 3. Neither the name of the University nor the names of its contributors 14155408Srwatson * may be used to endorse or promote products derived from this software 15155408Srwatson * without specific prior written permission. 16155408Srwatson * 17155408Srwatson * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 18155408Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19155408Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20155408Srwatson * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21155408Srwatson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22155408Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23155408Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24155408Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25155408Srwatson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26155408Srwatson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27155408Srwatson * SUCH DAMAGE. 28155408Srwatson * 29155408Srwatson * @(#)extern.h 8.1 (Berkeley) 6/6/93 30155408Srwatson * $FreeBSD: head/usr.sbin/mtree/extern.h 122141 2003-11-05 22:26:08Z phk $ 31155408Srwatson */ 32155408Srwatsonextern uint32_t crc_total; 33155408Srwatson 34155408Srwatson#ifdef _FTS_H_ 35155408Srwatsonint compare(char *, NODE *, FTSENT *); 36155408Srwatson#endif 37155408Srwatsonint crc(int, uint32_t *, off_t *); 38155408Srwatsonvoid cwalk(void); 39155408Srwatsonchar *flags_to_string(u_long); 40155408Srwatson 41155408Srwatsonconst char *inotype(u_int); 42155408Srwatsonu_int parsekey(char *, int *); 43155408Srwatsonchar *rlink(char *); 44155408SrwatsonNODE *mtree_readspec(FILE *fi); 45155408Srwatsonint mtree_verifyspec(FILE *fi); 46155408Srwatsonint mtree_specspec(FILE *fi, FILE *fj); 47155408Srwatson 48155408Srwatsonint check_excludes(const char *, const char *); 49155408Srwatsonvoid init_excludes(void); 50155408Srwatsonvoid read_excludes_file(const char *); 51156880Srwatsonconst char * ftype(u_int type); 52155408Srwatson