summaryrefslogtreecommitdiffstats
path: root/include/fnmatch.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1997-09-22 05:03:29 +0000
committermillert <millert@openbsd.org>1997-09-22 05:03:29 +0000
commite14651f51bcc2e34cd8107d993966fd4f1062336 (patch)
treef7e9a89882f1a9a11aaf5136f72d4c0ec833935c /include/fnmatch.h
parentmachdep.bios (diff)
downloadwireguard-openbsd-e14651f51bcc2e34cd8107d993966fd4f1062336.tar.xz
wireguard-openbsd-e14651f51bcc2e34cd8107d993966fd4f1062336.zip
From FreeBSD:
1) Add support for FNM_LEADING_DIR, FNM_CASEFOLD, FNM_IGNORECASE 2) POSIX.2 fixes
Diffstat (limited to 'include/fnmatch.h')
-rw-r--r--include/fnmatch.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/fnmatch.h b/include/fnmatch.h
index 62f483f7223..38cf14fd34c 100644
--- a/include/fnmatch.h
+++ b/include/fnmatch.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fnmatch.h,v 1.2 1997/09/21 10:45:33 niklas Exp $ */
+/* $OpenBSD: fnmatch.h,v 1.3 1997/09/22 05:03:30 millert Exp $ */
/* $NetBSD: fnmatch.h,v 1.5 1994/10/26 00:55:53 cgd Exp $ */
/*-
@@ -44,6 +44,11 @@
#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. */
+#ifndef _POSIX_SOURCE
+#define FNM_LEADING_DIR 0x08 /* Ignore /<tail> after Imatch. */
+#define FNM_CASEFOLD 0x10 /* Case insensitive search. */
+#define FNM_IGNORECASE FNM_CASEFOLD
+#endif
#include <sys/cdefs.h>