Blame lib/exclude.h

Packit Service fdd496
/* exclude.h -- declarations for excluding file names
Packit Service fdd496
Packit Service fdd496
   Copyright (C) 1992-1994, 1997, 1999, 2001-2003, 2005-2006, 2009-2017 Free
Packit Service fdd496
   Software Foundation, Inc.
Packit Service fdd496
Packit Service fdd496
   This program is free software: you can redistribute it and/or modify
Packit Service fdd496
   it under the terms of the GNU General Public License as published by
Packit Service fdd496
   the Free Software Foundation; either version 3 of the License, or
Packit Service fdd496
   (at your option) any later version.
Packit Service fdd496
Packit Service fdd496
   This program is distributed in the hope that it will be useful,
Packit Service fdd496
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service fdd496
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service fdd496
   GNU General Public License for more details.
Packit Service fdd496
Packit Service fdd496
   You should have received a copy of the GNU General Public License
Packit Service fdd496
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit Service fdd496
Packit Service fdd496
#ifndef _GL_EXCLUDE_H
Packit Service fdd496
#define _GL_EXCLUDE_H 1
Packit Service fdd496
Packit Service fdd496
#include <stdbool.h>
Packit Service fdd496
#include <stdio.h>
Packit Service fdd496
Packit Service fdd496
/* Written by Paul Eggert <eggert@twinsun.com>
Packit Service fdd496
   and Sergey Poznyakoff <gray@gnu.org> */
Packit Service fdd496
Packit Service fdd496
/* Exclude options, which can be ORed with fnmatch options.  */
Packit Service fdd496
Packit Service fdd496
/* Patterns must match the start of file names, instead of matching
Packit Service fdd496
   anywhere after a '/'.  */
Packit Service fdd496
#define EXCLUDE_ANCHORED (1 << 30)
Packit Service fdd496
Packit Service fdd496
/* Include instead of exclude.  */
Packit Service fdd496
#define EXCLUDE_INCLUDE (1 << 29)
Packit Service fdd496
Packit Service fdd496
/* '?', '*', '[', and '\\' are special in patterns.  Without this
Packit Service fdd496
   option, these characters are ordinary and fnmatch is not used.  */
Packit Service fdd496
#define EXCLUDE_WILDCARDS (1 << 28)
Packit Service fdd496
Packit Service fdd496
/* Patterns are POSIX extended regular expressions */
Packit Service fdd496
#define EXCLUDE_REGEX     (1 << 27)
Packit Service fdd496
Packit Service fdd496
/* Allocate storage for the pattern */
Packit Service fdd496
#define EXCLUDE_ALLOC     (1 << 26)
Packit Service fdd496
Packit Service fdd496
struct exclude;
Packit Service fdd496
Packit Service fdd496
bool fnmatch_pattern_has_wildcards (const char *, int) _GL_ATTRIBUTE_PURE;
Packit Service fdd496
Packit Service fdd496
struct exclude *new_exclude (void);
Packit Service fdd496
void free_exclude (struct exclude *);
Packit Service fdd496
void add_exclude (struct exclude *, char const *, int);
Packit Service fdd496
int add_exclude_file (void (*) (struct exclude *, char const *, int),
Packit Service fdd496
                      struct exclude *, char const *, int, char);
Packit Service fdd496
int add_exclude_fp (void (*) (struct exclude *, char const *, int, void *),
Packit Service fdd496
		    struct exclude *, FILE *, int, char, void *);
Packit Service fdd496
bool excluded_file_name (struct exclude const *, char const *);
Packit Service fdd496
void exclude_add_pattern_buffer (struct exclude *ex, char *buf);
Packit Service fdd496
bool exclude_fnmatch (char const *, char const *, int);
Packit Service fdd496
Packit Service fdd496
#endif /* _GL_EXCLUDE_H */