summaryrefslogtreecommitdiff
path: root/usr/src/head/fnmatch.h
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2017-08-14 21:30:42 +0300
committerDan McDonald <danmcd@joyent.com>2017-08-22 19:38:42 -0400
commitf52b16c60da4b4c350471d7fc68089d796cc082f (patch)
tree71780d0aa703e6975bc33b29968ec5597858ee09 /usr/src/head/fnmatch.h
parent89d58ee09d14e0fcdb6f3e8b43197b24ba7a0036 (diff)
downloadillumos-gate-f52b16c60da4b4c350471d7fc68089d796cc082f.tar.gz
8578 sync fnmatch(3C) with upstream
Reviewed by: Toomas Soome <toomas@me.com> Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/head/fnmatch.h')
-rw-r--r--usr/src/head/fnmatch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/head/fnmatch.h b/usr/src/head/fnmatch.h
index bfb4b925c0..9602c18bbb 100644
--- a/usr/src/head/fnmatch.h
+++ b/usr/src/head/fnmatch.h
@@ -19,6 +19,7 @@
*
* CDDL HEADER END
*/
+
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
* Copyright (c) 1994 by Sun Microsystems, Inc.
@@ -37,6 +38,10 @@ extern "C" {
#define FNM_PERIOD 0x04 /* Leading period in string must be exactly */
/* matched by period in pattern */
#define FNM_IGNORECASE 0x08 /* Ignore case when making comparisons */
+#define FNM_CASEFOLD 0x08 /* Ignore case when making comparisons */
+ /* (for FreeBSD/Linux compatibility) */
+#define FNM_LEADING_DIR 0x10 /* Match if pattern matches initial segment */
+ /* of str which is followed by a slash */
#define FNM_NOMATCH 1 /* string doesnt match the specified pattern */
#define FNM_ERROR 2 /* error occured */