History log of /freebsd-9.3-release/sys/libkern/fnmatch.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 154660 21-Jan-2006 rwatson

Convert function declarations to ANSI C.

MFC after: 1 week


# 139815 06-Jan-2005 imp

/* -> /*- for copyright notices, minor format tweaks as necessary


# 128019 07-Apr-2004 imp

Remove advertising clause from University of California Regent's
license, per letter dated July 22, 1999 and email from Peter Wemm,
Alan Cox and Robert Watson.

Approved by: core, peter, alc, rwatson


# 116189 11-Jun-2003 obrien

Use __FBSDID().


# 104652 08-Oct-2002 dd

Import the libc fnmatch() into the kernel. This will be used by,
among other things, the DEVFS rule subsystem to match nodes against a
path pattern supplied by the user.

fnmatch.c was repo-copied from src/lib/libc/gen/fnmatch.c, and the
only changes to it are those necessary to make it compile in the
kernel. The relevant parts of fnmatch.h were imported into libkern.h.

Approved by: -arch


# 90045 31-Jan-2002 obrien

* Remove __P and convert to ANSI prototypes.
* Remove 'register'. (some functions had 7+ register functions...)
* Fix SCM ID's.


# 26492 06-Jun-1997 ache

Style optimization in newly added POSIX range []] conformance, redo
'for' loop as do...while and remove variable unneded now


# 26486 06-Jun-1997 ache

Add missing FNM_PERIOD check for '[' range
Don't treat !^ as first characters in the range, just as negate sign
[/] never match if FNM_PATHNAME


# 26484 06-Jun-1997 ache

1) Now conforms POSIX.2 2.8.3.2 requirements about []] pattern
2) Treat unclosed [ range in pattern as regular characters (bash style)


# 25269 29-Apr-1997 jdp

Fix a bug that caused some false mismatches when both FNM_PATHNAME
and FNM_LEADING_DIR were specified and the pattern ended with "*".
Example: pattern="src/usr.sbin/w*", string="src/usr.sbin/watch/watch.8,v".
This should match, but did not.


# 24632 04-Apr-1997 ache

Eliminate some function calls when locale not used


# 24630 04-Apr-1997 ache

Speedup in case locale not used


# 19276 31-Oct-1996 ache

collate_range_cmp -> __collate_range_cmp


# 19132 23-Oct-1996 ache

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


# 19059 20-Oct-1996 wosch

add flag FNM_ICASE for case insensitve search

Reviewed by: ache


# 17552 12-Aug-1996 ache

Convert to newly aded collate compare function


# 17533 12-Aug-1996 ache

Use collate for alpha character ranges


# 17141 12-Jul-1996 jkh

General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>


# 8870 30-May-1995 rgrimes

Remove trailing whitespace.


# 1573 27-May-1994 rgrimes

BSD 4.4 Lite Lib Sources