ftree.h revision 302408
1219820Sjeff/*-
2219820Sjeff * Copyright (c) 1992 Keith Muller.
3219820Sjeff * Copyright (c) 1992, 1993
4219820Sjeff *	The Regents of the University of California.  All rights reserved.
5219820Sjeff *
6219820Sjeff * This code is derived from software contributed to Berkeley by
7219820Sjeff * Keith Muller of the University of California, San Diego.
8219820Sjeff *
9219820Sjeff * Redistribution and use in source and binary forms, with or without
10219820Sjeff * modification, are permitted provided that the following conditions
11219820Sjeff * are met:
12219820Sjeff * 1. Redistributions of source code must retain the above copyright
13219820Sjeff *    notice, this list of conditions and the following disclaimer.
14219820Sjeff * 2. Redistributions in binary form must reproduce the above copyright
15219820Sjeff *    notice, this list of conditions and the following disclaimer in the
16219820Sjeff *    documentation and/or other materials provided with the distribution.
17219820Sjeff * 4. Neither the name of the University nor the names of its contributors
18219820Sjeff *    may be used to endorse or promote products derived from this software
19219820Sjeff *    without specific prior written permission.
20219820Sjeff *
21219820Sjeff * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22219820Sjeff * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23219820Sjeff * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24219820Sjeff * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25219820Sjeff * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26219820Sjeff * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27219820Sjeff * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28219820Sjeff * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29219820Sjeff * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30219820Sjeff * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31219820Sjeff * SUCH DAMAGE.
32219820Sjeff *
33219820Sjeff *	@(#)ftree.h	8.1 (Berkeley) 5/31/93
34219820Sjeff * $FreeBSD: stable/11/bin/pax/ftree.h 127958 2004-04-06 20:06:54Z markm $
35219820Sjeff */
36219820Sjeff
37219820Sjeff/*
38219820Sjeff * Data structure used by the ftree.c routines to store the file args to be
39272407Shselasky * handed to fts(). It keeps a reference count of which args generated a
40219820Sjeff * "selected" member
41277160Shselasky */
42277160Shselasky
43277160Shselaskytypedef struct ftree {
44277160Shselasky	char		*fname;		/* file tree name */
45277160Shselasky	int		refcnt;		/* has tree had a selected file? */
46277160Shselasky	int		chflg;		/* change directory flag */
47277160Shselasky	struct ftree	*fow;		/* pointer to next entry on list */
48219820Sjeff} FTREE;
49219820Sjeff