summaryrefslogtreecommitdiff
path: root/sys/libkern/fnmatch.c
Commit message (Collapse)AuthorAgeFilesLines
* sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326023
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=314436
* Use strchr() and strrchr().Ed Schouten2012-01-021-2/+2
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=229272
* Convert function declarations to ANSI C.Robert Watson2006-01-221-8/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=154660
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139815
* Remove advertising clause from University of California Regent'sWarner Losh2004-04-071-4/+0
| | | | | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson Notes: svn path=/head/; revision=128019
* Use __FBSDID().David E. O'Brien2003-06-111-2/+3
| | | | Notes: svn path=/head/; revision=116189
* Import the libc fnmatch() into the kernel. This will be used by,Dima Dorfman2002-10-081-20/+9
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=104652
* * Remove __P and convert to ANSI prototypes.David E. O'Brien2002-02-011-1/+3
| | | | | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's. Notes: svn path=/head/; revision=90045
* Style optimization in newly added POSIX range []] conformance, redoAndrey A. Chernov1997-06-071-6/+6
| | | | | | | 'for' loop as do...while and remove variable unneded now Notes: svn path=/head/; revision=26492
* Add missing FNM_PERIOD check for '[' rangeAndrey A. Chernov1997-06-061-4/+10
| | | | | | | | Don't treat !^ as first characters in the range, just as negate sign [/] never match if FNM_PATHNAME Notes: svn path=/head/; revision=26486
* 1) Now conforms POSIX.2 2.8.3.2 requirements about []] patternAndrey A. Chernov1997-06-061-11/+35
| | | | | | | 2) Treat unclosed [ range in pattern as regular characters (bash style) Notes: svn path=/head/; revision=26484
* Fix a bug that caused some false mismatches when both FNM_PATHNAMEJohn Polstra1997-04-291-1/+2
| | | | | | | | | 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. Notes: svn path=/head/; revision=25269
* Eliminate some function calls when locale not usedAndrey A. Chernov1997-04-041-6/+4
| | | | Notes: svn path=/head/; revision=24632
* Speedup in case locale not usedAndrey A. Chernov1997-04-041-2/+6
| | | | Notes: svn path=/head/; revision=24630
* collate_range_cmp -> __collate_range_cmpAndrey A. Chernov1996-10-311-3/+4
| | | | Notes: svn path=/head/; revision=19276
* GNU-style changes:Andrey A. Chernov1996-10-231-10/+14
| | | | | | | | | | 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 Notes: svn path=/head/; revision=19132
* add flag FNM_ICASE for case insensitve searchWolfram Schneider1996-10-201-1/+20
| | | | | | | Reviewed by: ache Notes: svn path=/head/; revision=19059
* Convert to newly aded collate compare functionAndrey A. Chernov1996-08-121-3/+3
| | | | Notes: svn path=/head/; revision=17552
* Use collate for alpha character rangesAndrey A. Chernov1996-08-121-1/+4
| | | | Notes: svn path=/head/; revision=17533
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-1/+1
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8870
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+171
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573