Blame posix/fnmatch.h

Packit Service 82fcde
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#ifndef	_FNMATCH_H
Packit Service 82fcde
#define	_FNMATCH_H	1
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__cplusplus
Packit Service 82fcde
extern "C" {
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* We #undef these before defining them because some losing systems
Packit Service 82fcde
   (HP-UX A.08.07 for example) define these in <unistd.h>.  */
Packit Service 82fcde
#undef	FNM_PATHNAME
Packit Service 82fcde
#undef	FNM_NOESCAPE
Packit Service 82fcde
#undef	FNM_PERIOD
Packit Service 82fcde
Packit Service 82fcde
/* Bits set in the FLAGS argument to `fnmatch'.  */
Packit Service 82fcde
#define	FNM_PATHNAME	(1 << 0) /* No wildcard can ever match `/'.  */
Packit Service 82fcde
#define	FNM_NOESCAPE	(1 << 1) /* Backslashes don't quote special chars.  */
Packit Service 82fcde
#define	FNM_PERIOD	(1 << 2) /* Leading `.' is matched only explicitly.  */
Packit Service 82fcde
Packit Service 82fcde
#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE
Packit Service 82fcde
# define FNM_FILE_NAME	 FNM_PATHNAME	/* Preferred GNU name.  */
Packit Service 82fcde
# define FNM_LEADING_DIR (1 << 3)	/* Ignore `/...' after a match.  */
Packit Service 82fcde
# define FNM_CASEFOLD	 (1 << 4)	/* Compare without regard to case.  */
Packit Service 82fcde
# define FNM_EXTMATCH	 (1 << 5)	/* Use ksh-like extended matching. */
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Value returned by `fnmatch' if STRING does not match PATTERN.  */
Packit Service 82fcde
#define	FNM_NOMATCH	1
Packit Service 82fcde
Packit Service 82fcde
/* This value is returned if the implementation does not support
Packit Service 82fcde
   `fnmatch'.  Since this is not the case here it will never be
Packit Service 82fcde
   returned but the conformance test suites still require the symbol
Packit Service 82fcde
   to be defined.  */
Packit Service 82fcde
#ifdef _XOPEN_SOURCE
Packit Service 82fcde
# define FNM_NOSYS	(-1)
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
/* Match NAME against the filename pattern PATTERN,
Packit Service 82fcde
   returning zero if it matches, FNM_NOMATCH if not.  */
Packit Service 82fcde
extern int fnmatch (const char *__pattern, const char *__name, int __flags);
Packit Service 82fcde
Packit Service 82fcde
#ifdef	__cplusplus
Packit Service 82fcde
}
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
#endif /* fnmatch.h */