]> git.saurik.com Git - apple/libc.git/blobdiff - include/fnmatch.h
Libc-594.9.5.tar.gz
[apple/libc.git] / include / fnmatch.h
index cf186f921a21346d8737aa245ec1a373290f9715..f2e44e5bc8b10a6b5f7d419130bcd1f502772e1b 100644 (file)
 #ifndef        _FNMATCH_H_
 #define        _FNMATCH_H_
 
+#include <sys/cdefs.h>
+
 #define        FNM_NOMATCH     1       /* Match failed. */
 
 #define        FNM_NOESCAPE    0x01    /* Disable backslash escaping. */
 #define        FNM_PATHNAME    0x02    /* Slash must be matched by slash. */
 #define        FNM_PERIOD      0x04    /* Period must be matched by period. */
 
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
-#define FNM_LEADING_DIR 0x08    /* Ignore /<tail> after Imatch. */
-#define FNM_CASEFOLD    0x10    /* Case insensitive search. */
-#define FNM_IGNORECASE  FNM_CASEFOLD
-#define FNM_FILE_NAME   FNM_PATHNAME
-#endif
+#define        FNM_NOSYS       (-1)    /* Reserved. */
 
-#include <sys/cdefs.h>
+#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
+#define        FNM_LEADING_DIR 0x08    /* Ignore /<tail> after Imatch. */
+#define        FNM_CASEFOLD    0x10    /* Case insensitive search. */
+#define        FNM_IGNORECASE  FNM_CASEFOLD
+#define        FNM_FILE_NAME   FNM_PATHNAME
+#endif
 
 __BEGIN_DECLS
-#ifndef        _POSIX_SOURCE
-int     fnmatch(const char *, const char *, int);
-#endif
+//Begin-Libc
+#ifndef LIBC_ALIAS_FNMATCH
+//End-Libc
+int     fnmatch(const char *, const char *, int) __DARWIN_ALIAS(fnmatch);
+//Begin-Libc
+#else /* LIBC_ALIAS_FNMATCH */
+int     fnmatch(const char *, const char *, int) LIBC_ALIAS(fnmatch);
+#endif /* !LIBC_ALIAS_FNMATCH */
+//End-Libc
 __END_DECLS
 
 #endif /* !_FNMATCH_H_ */