From owner-freebsd-arch@FreeBSD.ORG Thu Dec 11 19:34:24 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F6881065670 for ; Thu, 11 Dec 2008 19:34:24 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-gx0-f12.google.com (mail-gx0-f12.google.com [209.85.217.12]) by mx1.freebsd.org (Postfix) with ESMTP id 22F838FC18 for ; Thu, 11 Dec 2008 19:34:23 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by mail-gx0-f12.google.com with SMTP id 5so591195gxk.19 for ; Thu, 11 Dec 2008 11:34:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UpqXOQF5+clfcXjZSO7oXsbVAVOBSl9cql2xOcnP+oA=; b=T2lU1MZHraSjKOaXBUUqDJ+yLrZeQsVwXU3p2TSQDKbEbqDzQUGz+VjUzAYcBP/avW Rulb9aIkgtuLR+81fQapjOka1TJ9lFM18a4UMfRmWQBJIXTLqixzHZJ8rYFsJtPDdj9L nHxFONqIMXOs5dcCdiofIJ5eDAYyeBWbEUTz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Fe69Mft5gHwaF4VqznBUCf2Y1rlp6ZMUh7FlIg0IJzD9ii0xNahGI1squUePylccQc mjdWXsxxs9omez0t35Ov0lsdZ/iRyoJmomyqxEMajQoNZyH/GsjkcxcGyPlF3CnRhnCN 67xicvAycymxmzQJKK4ZRQm4j7mM5T2vk1/34= Received: by 10.90.70.15 with SMTP id s15mr1780861aga.82.1229024054607; Thu, 11 Dec 2008 11:34:14 -0800 (PST) Received: by 10.90.91.14 with HTTP; Thu, 11 Dec 2008 11:34:14 -0800 (PST) Message-ID: Date: Thu, 11 Dec 2008 22:34:14 +0300 From: pluknet To: "Ed Schouten" In-Reply-To: <20081211190436.GE1176@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <49381DD4.2000506@kasimir.com> <20081211175519.GD1176@hoeg.nl> <20081211190436.GE1176@hoeg.nl> Cc: FreeBSD Arch Subject: Re: [Patch] strnlen(3) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2008 19:34:24 -0000 2008/12/11 Ed Schouten : > Hello all, > > I've attached a patch, that adds strnlen(3) to libc. It also moves > strndup(3) out of __BSD_VISIBLE. I'll see if it survives `make universe' > and commit it soonish. Any comments? > btw, we already have strnlen under BSD license in the tree (in contribs), which is more optimized (uses one less instruction). > -- > Ed Schouten > WWW: http://80386.nl/ > -- wbr, pluknet