aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/fnmatch.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/fnmatch.3')
-rw-r--r--lib/libc/gen/fnmatch.325
1 files changed, 11 insertions, 14 deletions
diff --git a/lib/libc/gen/fnmatch.3 b/lib/libc/gen/fnmatch.3
index 2d967d2d1bd0..d3d3ccaa3b6e 100644
--- a/lib/libc/gen/fnmatch.3
+++ b/lib/libc/gen/fnmatch.3
@@ -1,5 +1,5 @@
-.\" Copyright (c) 1989, 1991 The Regents of the University of California.
-.\" All rights reserved.
+.\" Copyright (c) 1989, 1991, 1993
+.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Guido van Rossum.
@@ -31,9 +31,10 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)fnmatch.3 5.4 (Berkeley) 6/28/92
+.\" from: @(#)fnmatch.3 8.1 (Berkeley) 6/9/93
+.\" $Id: fnmatch.3,v 1.3 1993/11/23 00:10:08 jtc Exp $
.\"
-.Dd June 28, 1992
+.Dd June 9, 1993
.Dt FNMATCH 3
.Os
.Sh NAME
@@ -94,7 +95,6 @@ Additionally, if
.Dv FNM_PATHNAME
is set,
a period is ``leading'' if it immediately follows a slash.
-.Em "This flag is not currently implemented."
.El
.Sh RETURN VALUES
The
@@ -110,19 +110,16 @@ otherwise, it returns the value
.Xr glob 3 ,
.Xr wordexp 3 ,
.Xr regexp 3
+.Sh STANDARDS
+The
+.Fn fnmatch
+function is expected to conform to
+.St -p1003.2-92 .
.Sh HISTORY
The
.Fn fnmatch
-function is
-.Ud .
+function first appeared in 4.4BSD.
.Sh BUGS
-Quotes and slashes in range patterns are not handled correctly by
-this implementation.
-.Pp
-The
-.Dv FNM_PERIOD
-flag is not implemented.
-.Pp
The pattern
.Ql *
matches the empty string, even if