| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef _FNMATCH_H |
| #define _FNMATCH_H 1 |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| #if defined __cplusplus || (defined __STDC__ && __STDC__) || defined WINDOWS32 |
| # if !defined __GLIBC__ || !defined __P |
| # undef __P |
| # define __P(protos) protos |
| # endif |
| #else |
| # undef __P |
| # define __P(protos) () |
| |
| |
| |
| #endif |
| |
| #ifndef const |
| # if (defined __STDC__ && __STDC__) || defined __cplusplus |
| # define __const const |
| # else |
| # define __const |
| # endif |
| #endif |
| |
| |
| |
| #undef FNM_PATHNAME |
| #undef FNM_NOESCAPE |
| #undef FNM_PERIOD |
| |
| |
| #define FNM_PATHNAME (1 << 0) |
| #define FNM_NOESCAPE (1 << 1) |
| #define FNM_PERIOD (1 << 2) |
| |
| #if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE |
| # define FNM_FILE_NAME FNM_PATHNAME |
| # define FNM_LEADING_DIR (1 << 3) |
| # define FNM_CASEFOLD (1 << 4) |
| # define FNM_EXTMATCH (1 << 5) |
| #endif |
| |
| |
| #define FNM_NOMATCH 1 |
| |
| |
| |
| |
| |
| #ifdef _XOPEN_SOURCE |
| # define FNM_NOSYS (-1) |
| #endif |
| |
| |
| |
| extern int fnmatch __P ((__const char *__pattern, __const char *__name, |
| int __flags)); |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #endif |