Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261519AbVBADa2 (ORCPT ); Mon, 31 Jan 2005 22:30:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261524AbVBADa2 (ORCPT ); Mon, 31 Jan 2005 22:30:28 -0500 Received: from [195.23.16.24] ([195.23.16.24]:22155 "EHLO bipbip.comserver-pie.com") by vger.kernel.org with ESMTP id S261519AbVBADaQ (ORCPT ); Mon, 31 Jan 2005 22:30:16 -0500 Message-ID: <1107228501.41fef755e66e8@webmail.grupopie.com> Date: Tue, 1 Feb 2005 03:28:21 +0000 From: "" To: Andrew Morton Cc: "" Subject: [PATCH 2.6] 1/7 create kstrdup library function MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="-MOQ110722850125d9ae896cd9d74201e447a3802e075b" User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 82.154.143.60 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2654 Lines: 54 This message is in MIME format. ---MOQ110722850125d9ae896cd9d74201e447a3802e075b Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable This patch creates the kstrdup library function so that it doesn't have t= o be reimplemented (or even EXPORT'ed) by every user that needs it. Signed-off-by: Paulo Marques -- Paulo Marques - www.grupopie.com =20 All that is necessary for the triumph of evil is that good men do nothing= . Edmund Burke (1729 - 1797) ---MOQ110722850125d9ae896cd9d74201e447a3802e075b Content-Type: text/x-diff; name="patch1" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="patch1" ZGlmZiAtYnVwck4gLVggZG9udGRpZmYgdmFuaWxsYS0yLjYuMTEtcmMyLWJrOS9pbmNsdWRlL2xp bnV4L3N0cmluZy5oIGxpbnV4LTIuNi4xMS1yYzItYms5L2luY2x1ZGUvbGludXgvc3RyaW5nLmgK LS0tIHZhbmlsbGEtMi42LjExLXJjMi1iazkvaW5jbHVkZS9saW51eC9zdHJpbmcuaA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RpbmcgbWVtb3J5CisgKi8KK2NoYXIgKmtzdHJkdXAo Y29uc3QgY2hhciAqcywgaW50IGdmcCkKK3sKKwlpbnQgbGVuOworCWNoYXIgKmJ1ZjsKKworCWlm ICghcykgcmV0dXJuIE5VTEw7CisKKwlsZW4gPSBzdHJsZW4ocykgKyAxOworCWJ1ZiA9IGttYWxs b2MobGVuLCBnZnApOworCWlmIChidWYpCisJCW1lbWNweShidWYsIHMsIGxlbik7CisJcmV0dXJu IGJ1ZjsKK30KKworRVhQT1JUX1NZTUJPTChrc3RyZHVwKTsK ---MOQ110722850125d9ae896cd9d74201e447a3802e075b-- - 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/