History log of /freebsd-current/sys/libkern/fnmatch.c
Revision Date Author Comments
# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 51369649 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

sys: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# dc15eac0 01-Jan-2012 Ed Schouten <ed@FreeBSD.org>

Use strchr() and strrchr().

It seems strchr() and strrchr() are used more often than index() and
rindex(). Therefore, simply migrate all kernel code to use it.

For the XFS code, remove an empty line to make the code identical to
the code in the Linux kernel.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# b059cbd3 21-Jan-2006 Robert Watson <rwatson@FreeBSD.org>

Convert function declarations to ANSI C.

MFC after: 1 week


# d6ea0262 06-Jan-2005 Warner Losh <imp@FreeBSD.org>

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


# f36cfd49 07-Apr-2004 Warner Losh <imp@FreeBSD.org>

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


# ab0de15b 10-Jun-2003 David E. O'Brien <obrien@FreeBSD.org>

Use __FBSDID().


# 20a6cb8c 07-Oct-2002 Dima Dorfman <dd@FreeBSD.org>

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


# b231cb39 31-Jan-2002 David E. O'Brien <obrien@FreeBSD.org>

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


# e728d480 06-Jun-1997 Andrey A. Chernov <ache@FreeBSD.org>

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


# 05a068e6 06-Jun-1997 Andrey A. Chernov <ache@FreeBSD.org>

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


# e2dbbd9e 06-Jun-1997 Andrey A. Chernov <ache@FreeBSD.org>

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


# 298c8e3d 28-Apr-1997 John Polstra <jdp@FreeBSD.org>

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.


# 6a575f6e 04-Apr-1997 Andrey A. Chernov <ache@FreeBSD.org>

Eliminate some function calls when locale not used


# 50582549 04-Apr-1997 Andrey A. Chernov <ache@FreeBSD.org>

Speedup in case locale not used


# edcfa072 30-Oct-1996 Andrey A. Chernov <ache@FreeBSD.org>

collate_range_cmp -> __collate_range_cmp


# 3deeb59d 23-Oct-1996 Andrey A. Chernov <ache@FreeBSD.org>

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


# 95e4966c 20-Oct-1996 Wolfram Schneider <wosch@FreeBSD.org>

add flag FNM_ICASE for case insensitve search

Reviewed by: ache


# 79deb124 12-Aug-1996 Andrey A. Chernov <ache@FreeBSD.org>

Convert to newly aded collate compare function


# 36a00a4b 11-Aug-1996 Andrey A. Chernov <ache@FreeBSD.org>

Use collate for alpha character ranges


# 51295a4d 12-Jul-1996 Jordan K. Hubbard <jkh@FreeBSD.org>

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


# 6c06b4e2 29-May-1995 Rodney W. Grimes <rgrimes@FreeBSD.org>

Remove trailing whitespace.


# 58f0484f 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Lib Sources