]> granicus.if.org Git - sudo/commitdiff
Pull in newer fnmatch(3) that supports FNM_CASEFOLD
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Mar 2000 15:11:56 +0000 (15:11 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Mar 2000 15:11:56 +0000 (15:11 +0000)
emul/fnmatch.h

index 85777ab89d117777c94e4cfcd15f66758ef54829..7a66a46d2fb9e23b5ad69cab1358bd538163d49e 100644 (file)
@@ -31,6 +31,7 @@
  * SUCH DAMAGE.
  *
  *     @(#)fnmatch.h   8.1 (Berkeley) 6/2/93
+ *     $OpenBSD: fnmatch.h,v 1.4 1997/09/22 05:25:32 millert Exp $
  */
 
 #ifndef        _FNMATCH_H_
 #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. */
+#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
 
-int fnmatch    __P((const char *, const char *, int));
+int     fnmatch __P((const char *, const char *, int));
 
 #endif /* !_FNMATCH_H_ */