summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/fnmatch.3
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-10-23 16:40:20 +0000
committerache <ache@FreeBSD.org>1996-10-23 16:40:20 +0000
commit392b773de0d2e240c8b31e37463505fff384909c (patch)
treec05ddbdeb156c25f3d69669dc44146c5c1d4feeb /lib/libc/gen/fnmatch.3
parentb7a42c0562a14602ef003def609b976789ca6967 (diff)
downloadFreeBSD-src-392b773de0d2e240c8b31e37463505fff384909c.zip
FreeBSD-src-392b773de0d2e240c8b31e37463505fff384909c.tar.gz
GNU-style changes:
1) Rename FNM_ICASE to FNM_CASEFOLD 2) Add FNM_LEADING_DIR Add proper (unsigned char) casts to tolower(). Use 'char' function argument for proper sign extension
Diffstat (limited to 'lib/libc/gen/fnmatch.3')
-rw-r--r--lib/libc/gen/fnmatch.38
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/gen/fnmatch.3 b/lib/libc/gen/fnmatch.3
index 4363426..bc00787 100644
--- a/lib/libc/gen/fnmatch.3
+++ b/lib/libc/gen/fnmatch.3
@@ -99,7 +99,13 @@ Additionally, if
.Dv FNM_PATHNAME
is set,
a period is ``leading'' if it immediately follows a slash.
-.It Dv FNM_ICASE
+.It Dv FNM_LEADING_DIR
+Ignore
+.Nm /*
+rest after successful
+.Fa pattern
+matching.
+.It Dv FNM_CASEFOLD
Ignore case distinctions in both the
.Fa pattern
and the
OpenPOWER on IntegriCloud