From: Du, Changbin Date: Thu, 23 Jan 2014 23:54:12 +0000 (-0800) Subject: lib/parser.c: add match_wildcard() function X-Git-Tag: v3.14-rc1~108^2~121 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aace05097a0fd467230e39acb148be0fdaa90068;p=pandora-kernel.git lib/parser.c: add match_wildcard() function match_wildcard function is a simple implementation of wildcard matching algorithm. It only supports two usual wildcardes: '*' - matches zero or more characters '?' - matches one character This algorithm is safe since it is non-recursive. Signed-off-by: Du, Changbin Cc: Jason Baron Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed