Skip to contentSkip to conversation

+ lib-parserc-add-match_wildcard-function.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 19, 2013 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + lib-parserc-add-match_wildcard-function.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 19 Nov 2013 15:34:19 -0800

The patch titled
Subject: lib/parser.c: add match_wildcard function
has been added to the -mm tree. Its filename is
lib-parserc-add-match_wildcard-function.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/lib-parserc-add-match_wildcard-function.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/lib-parserc-add-match_wildcard-function.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: "Du, Changbin" <[email protected]>
Subject: 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.

---

 include/linux/parser.h |    1 
 lib/parser.c           |   51 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)
include/linux/parser.h renamed from include/linux/parser.h~lib-parserc-add-match_wildcard-function +1 -0
diff -puN include/linux/parser.h~lib-parserc-add-match_wildcard-function include/linux/parser.h
@@ -29,5 +29,6 @@ int match_token(char *, const match_tabl
 int match_int(substring_t *, int *result);
 int match_octal(substring_t *, int *result);
 int match_hex(substring_t *, int *result);
+bool match_wildcard(const char *pattern, const char *str);
 size_t match_strlcpy(char *, const substring_t *, size_t);
 char *match_strdup(const substring_t *);
lib/parser.c renamed from lib/parser.c~lib-parserc-add-match_wildcard-function +51 -0

62 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

lib-parserc-add-match_wildcard-function.patch dynamic_debug-add-wildcard-support-to-filter-files-functions-modules.patch dynamic-debug-howtotxt-update-since-new-wildcard-support.patch