(linenum→info "unix/slp.c:2238")

coreutils/6.9/lib/exclude.h

    1: /* exclude.h -- declarations for excluding file names
    2: 
    3:    Copyright (C) 1992, 1993, 1994, 1997, 1999, 2001, 2002, 2003, 2005,
    4:    2006 Free Software Foundation, Inc.
    5: 
    6:    This program is free software; you can redistribute it and/or modify
    7:    it under the terms of the GNU General Public License as published by
    8:    the Free Software Foundation; either version 2, or (at your option)
    9:    any later version.
   10: 
   11:    This program is distributed in the hope that it will be useful,
   12:    but WITHOUT ANY WARRANTY; without even the implied warranty of
   13:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14:    GNU General Public License for more details.
   15: 
   16:    You should have received a copy of the GNU General Public License
   17:    along with this program; see the file COPYING.
   18:    If not, write to the Free Software Foundation,
   19:    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
   20: 
   21: /* Written by Paul Eggert <eggert@twinsun.com>  */
   22: 
   23: /* Exclude options, which can be ORed with fnmatch options.  */
   24: 
   25: /* Patterns must match the start of file names, instead of matching
   26:    anywhere after a '/'.  */
   27: #define EXCLUDE_ANCHORED (1 << 30)
   28: 
   29: /* Include instead of exclude.  */
   30: #define EXCLUDE_INCLUDE (1 << 29)
   31: 
   32: /* '?', '*', '[', and '\\' are special in patterns.  Without this
   33:    option, these characters are ordinary and fnmatch is not used.  */
   34: #define EXCLUDE_WILDCARDS (1 << 28)
   35: 
   36: struct exclude;
   37: 
   38: struct exclude *new_exclude (void);
   39: void free_exclude (struct exclude *);
   40: void add_exclude (struct exclude *, char const *, int);
   41: int add_exclude_file (void (*) (struct exclude *, char const *, int),
   42:                       struct exclude *, char const *, int, char);
   43: bool excluded_file_name (struct exclude const *, char const *);
   44: bool exclude_fnmatch (char const *pattern, char const *f, int options);
Syntax (Markdown)