Re: [RFC][PATCH v2 2/7] implement memmem()

2015-02-06 Thread Rasmus Villemoes
On Fri, Feb 06 2015, Steven Rostedt wrote: > The functionality of strnstr() does not change with this patch, so it > does not need to address your concern. Yeah, I should have checked that, of course. Sorry. > Feel free to submit a patch that states the difference of the kernel > version of str

Re: [RFC][PATCH v2 2/7] implement memmem()

2015-02-06 Thread Steven Rostedt
On Fri, 06 Feb 2015 23:30:19 +0100 Rasmus Villemoes wrote: > On Fri, Feb 06 2015, Al Viro wrote: > > > +/** > > + * strnstr - Find the first substring in a length-limited string > > + * @s1: The string to be searched > > + * @s2: The string to search for > > + * @len: the maximum number of char

Re: [RFC][PATCH v2 2/7] implement memmem()

2015-02-06 Thread Rasmus Villemoes
On Fri, Feb 06 2015, Al Viro wrote: > +/** > + * strnstr - Find the first substring in a length-limited string > + * @s1: The string to be searched > + * @s2: The string to search for > + * @len: the maximum number of characters to search > + */ > +char *strnstr(const char *s1, const char *s2, si

Re: [RFC][PATCH v2 2/7] implement memmem()

2015-02-06 Thread Steven Rostedt
On Fri, 6 Feb 2015 04:00:10 + Al Viro wrote: > From: Al Viro > > Signed-off-by: Al Viro > --- > include/linux/string.h | 1 + > lib/string.c | 34 ++ > 2 files changed, 23 insertions(+), 12 deletions(-) > > diff --git a/include/linux/string.h b

[RFC][PATCH v2 2/7] implement memmem()

2015-02-05 Thread Al Viro
From: Al Viro Signed-off-by: Al Viro --- include/linux/string.h | 1 + lib/string.c | 34 ++ 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/include/linux/string.h b/include/linux/string.h index 2e22a2e..87f9fba 100644 --- a/include/li