Blame missing_d/fnmatch.h

Packit 575503
/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999 Free Software
Packit 575503
Foundation, Inc.
Packit 575503
This file is part of the GNU C Library.
Packit 575503
Packit 575503
The GNU C Library is free software; you can redistribute it and/or
Packit 575503
modify it under the terms of the GNU Library General Public License as
Packit 575503
published by the Free Software Foundation; either version 2 of the
Packit 575503
License, or (at your option) any later version.
Packit 575503
Packit 575503
The GNU C Library is distributed in the hope that it will be useful,
Packit 575503
but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 575503
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 575503
Library General Public License for more details.
Packit 575503
Packit 575503
You should have received a copy of the GNU Library General Public License
Packit 575503
along with this library; see the file COPYING.LIB.  If not, write to the Free
Packit 575503
Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
Packit 575503
USA.  */
Packit 575503
Packit 575503
#ifndef	_FNMATCH_H
Packit 575503
#define	_FNMATCH_H	1
Packit 575503
Packit 575503
#ifdef	__cplusplus
Packit 575503
extern "C" {
Packit 575503
#endif
Packit 575503
Packit 575503
#if defined __cplusplus || (defined __STDC__ && __STDC__) || defined WINDOWS32
Packit 575503
# if !defined __GLIBC__
Packit 575503
#  undef	__P
Packit 575503
#  define __P(protos)	protos
Packit 575503
# endif
Packit 575503
#else /* Not C++ or ANSI C.  */
Packit 575503
# undef	__P
Packit 575503
# define __P(protos)	()
Packit 575503
/* We can get away without defining `const' here only because in this file
Packit 575503
   it is used only inside the prototype for `fnmatch', which is elided in
Packit 575503
   non-ANSI C where `const' is problematical.  */
Packit 575503
#endif /* C++ or ANSI C.  */
Packit 575503
Packit 575503
#ifndef const
Packit 575503
# if (defined __STDC__ && __STDC__) || defined __cplusplus || defined WINDOWS32
Packit 575503
#  define __const	const
Packit 575503
# else
Packit 575503
#  define __const
Packit 575503
# endif
Packit 575503
#endif
Packit 575503
Packit 575503
/* We #undef these before defining them because some losing systems
Packit 575503
   (HP-UX A.08.07 for example) define these in <unistd.h>.  */
Packit 575503
#undef	FNM_PATHNAME
Packit 575503
#undef	FNM_NOESCAPE
Packit 575503
#undef	FNM_PERIOD
Packit 575503
Packit 575503
/* Bits set in the FLAGS argument to `fnmatch'.  */
Packit 575503
#define	FNM_PATHNAME	(1 << 0) /* No wildcard can ever match `/'.  */
Packit 575503
#define	FNM_NOESCAPE	(1 << 1) /* Backslashes don't quote special chars.  */
Packit 575503
#define	FNM_PERIOD	(1 << 2) /* Leading `.' is matched only explicitly.  */
Packit 575503
Packit 575503
#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE
Packit 575503
# define FNM_FILE_NAME	 FNM_PATHNAME	/* Preferred GNU name.  */
Packit 575503
# define FNM_LEADING_DIR (1 << 3)	/* Ignore `/...' after a match.  */
Packit 575503
# define FNM_CASEFOLD	 (1 << 4)	/* Compare without regard to case.  */
Packit 575503
#endif
Packit 575503
Packit 575503
/* Value returned by `fnmatch' if STRING does not match PATTERN.  */
Packit 575503
#define	FNM_NOMATCH	1
Packit 575503
Packit 575503
/* This value is returned if the implementation does not support
Packit 575503
   `fnmatch'.  Since this is not the case here it will never be
Packit 575503
   returned but the conformance test suites still require the symbol
Packit 575503
   to be defined.  */
Packit 575503
#ifdef _XOPEN_SOURCE
Packit 575503
# define FNM_NOSYS	(-1)
Packit 575503
#endif
Packit 575503
Packit 575503
/* Match NAME against the filename pattern PATTERN,
Packit 575503
   returning zero if it matches, FNM_NOMATCH if not.  */
Packit 575503
extern int fnmatch __P ((__const char *__pattern, __const char *__name,
Packit 575503
			 int __flags));
Packit 575503
Packit 575503
#ifdef	__cplusplus
Packit 575503
}
Packit 575503
#endif
Packit 575503
Packit 575503
#endif /* fnmatch.h */