Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262032AbTEYLwa (ORCPT ); Sun, 25 May 2003 07:52:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262033AbTEYLw3 (ORCPT ); Sun, 25 May 2003 07:52:29 -0400 Received: from phoenix.infradead.org ([195.224.96.167]:49163 "EHLO phoenix.infradead.org") by vger.kernel.org with ESMTP id S262032AbTEYLw1 (ORCPT ); Sun, 25 May 2003 07:52:27 -0400 Date: Sun, 25 May 2003 13:05:33 +0100 From: Christoph Hellwig To: =?iso-8859-1?Q?Ren=E9_Scharfe?= Cc: Ben Collins , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: Resend [PATCH] Make KOBJ_NAME_LEN match BUS_ID_SIZE Message-ID: <20030525130533.A9127@infradead.org> Mail-Followup-To: Christoph Hellwig , =?iso-8859-1?Q?Ren=E9_Scharfe?= , Ben Collins , Linus Torvalds , linux-kernel@vger.kernel.org References: <20030525112150.3994df9b.l.s.r@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030525112150.3994df9b.l.s.r@web.de>; from l.s.r@web.de on Sun, May 25, 2003 at 11:21:50AM +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 708 Lines: 18 On Sun, May 25, 2003 at 11:21:50AM +0200, Ren? Scharfe wrote: > This looks suspiciously like strlcpy() from the *BSDs. Why not name it > so? > > The following patch is based on Samba's implementation (found in > source/lib/replace.c). I just reformatted it somewhat, there are no > functional changes. What do you think? Looks good, you probably need a prototype in include/linux/string.h and a samba copyright boilerplate in lib/string.c. What about strlcat? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/