Blame lib/fnmatch.in.h

Packit Service fdd496
/* Copyright (C) 1991-1993, 1996-1999, 2001-2003, 2005, 2007, 2009-2017 Free
Packit Service fdd496
   Software Foundation, Inc.
Packit Service fdd496
Packit Service fdd496
   This file is part of the GNU C Library.
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, or (at your option)
Packit Service fdd496
   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 _FNMATCH_H
Packit Service fdd496
#define _FNMATCH_H      1
Packit Service fdd496
Packit Service fdd496
/* The definition of _GL_ARG_NONNULL is copied here.  */
Packit Service fdd496
Packit Service fdd496
#ifdef __cplusplus
Packit Service fdd496
extern "C" {
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* We #undef these before defining them because some losing systems
Packit Service fdd496
   (HP-UX A.08.07 for example) define these in <unistd.h>.  */
Packit Service fdd496
#undef  FNM_PATHNAME
Packit Service fdd496
#undef  FNM_NOESCAPE
Packit Service fdd496
#undef  FNM_PERIOD
Packit Service fdd496
Packit Service fdd496
/* Bits set in the FLAGS argument to 'fnmatch'.  */
Packit Service fdd496
#define FNM_PATHNAME    (1 << 0) /* No wildcard can ever match '/'.  */
Packit Service fdd496
#define FNM_NOESCAPE    (1 << 1) /* Backslashes don't quote special chars.  */
Packit Service fdd496
#define FNM_PERIOD      (1 << 2) /* Leading '.' is matched only explicitly.  */
Packit Service fdd496
Packit Service fdd496
#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE
Packit Service fdd496
# define FNM_FILE_NAME   FNM_PATHNAME   /* Preferred GNU name.  */
Packit Service fdd496
# define FNM_LEADING_DIR (1 << 3)       /* Ignore '/...' after a match.  */
Packit Service fdd496
# define FNM_CASEFOLD    (1 << 4)       /* Compare without regard to case.  */
Packit Service fdd496
# define FNM_EXTMATCH    (1 << 5)       /* Use ksh-like extended matching. */
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Value returned by 'fnmatch' if STRING does not match PATTERN.  */
Packit Service fdd496
#define FNM_NOMATCH     1
Packit Service fdd496
Packit Service fdd496
/* This value is returned if the implementation does not support
Packit Service fdd496
   'fnmatch'.  Since this is not the case here it will never be
Packit Service fdd496
   returned but the conformance test suites still require the symbol
Packit Service fdd496
   to be defined.  */
Packit Service fdd496
#ifdef _XOPEN_SOURCE
Packit Service fdd496
# define FNM_NOSYS      (-1)
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
/* Match NAME against the file name pattern PATTERN,
Packit Service fdd496
   returning zero if it matches, FNM_NOMATCH if not.  */
Packit Service fdd496
extern int fnmatch (const char *__pattern, const char *__name,
Packit Service fdd496
                    int __flags)
Packit Service fdd496
     _GL_ARG_NONNULL ((1, 2));
Packit Service fdd496
Packit Service fdd496
#ifdef __cplusplus
Packit Service fdd496
}
Packit Service fdd496
#endif
Packit Service fdd496
Packit Service fdd496
#endif /* fnmatch.h */