From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754446AbbBFXOu (ORCPT ); Fri, 6 Feb 2015 18:14:50 -0500 Received: from mail-lb0-f178.google.com ([209.85.217.178]:44631 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751517AbbBFXOs (ORCPT ); Fri, 6 Feb 2015 18:14:48 -0500 From: Rasmus Villemoes To: Steven Rostedt Cc: Al Viro , linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH v2 2/7] implement memmem() Organization: D03 References: <20150205224632.GW29656@ZenIV.linux.org.uk> <1423195215-25134-2-git-send-email-viro@ZenIV.linux.org.uk> <87zj8qoepw.fsf@rasmusvillemoes.dk> <20150206175549.117804c2@gandalf.local.home> X-Hashcash: 1:20:150206:linux-kernel@vger.kernel.org::GkeJIj9/T27TTvHr:0000000000000000000000000000000000cb2 X-Hashcash: 1:20:150206:rostedt@goodmis.org::99/uhLrUMdFNeZ+A:0000000000000000000000000000000000000000002uqV X-Hashcash: 1:20:150206:viro@zeniv.linux.org.uk::UFNl7+b5Hmq7L3JH:000000000000000000000000000000000000003yZ2 Date: Sat, 07 Feb 2015 00:14:45 +0100 In-Reply-To: <20150206175549.117804c2@gandalf.local.home> (Steven Rostedt's message of "Fri, 6 Feb 2015 17:55:49 -0500") Message-ID: <87vbjeocnu.fsf@rasmusvillemoes.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 strnstr with whatever version is out in the wild. It seems a much better name would be memstr, and "length-limited string" is misleading, since s1 is in no way treated as a string. But I'll leave it for now. Rasmus