From owner-freebsd-current@FreeBSD.ORG Wed Mar 5 16:42:37 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B74F9DF4; Wed, 5 Mar 2014 16:42:37 +0000 (UTC) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4FBD2F6A; Wed, 5 Mar 2014 16:42:37 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id m5so1218673qaj.7 for ; Wed, 05 Mar 2014 08:42:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=CaziTuBFKH4HB27ic5HQTwCah5C40u5HgkxzbF2OQ0M=; b=BwhQDZ73vzeca+4PJ10ISYbI3D1NvJ/8L9l6ZLty2vuKyxcR10v99Uh3FRLDmXHveN DJCGkBVGx+MsRpILDrUDXpzCbR70Bws9tCHfIdk/8Vgb0ekyFbsDU7eATkjjrU0lmix+ VcL7bSS60HcRGmjNa6Y6cbkie620naPowEuZejNuvTJNhVb54dvixI6BgZZucfqYKrs9 o3C+ZFIE7kDGFa6sSXbsvsVh/22tcaO9KDuqrNuNzYGD25q7hPOB7Bq+JWDW6Ht/5Nzb xP1ZOS52iDz12piUcFzygRkVhcu7WLfG8vvhBvLeC6g7Tj44a8aKGrJhD5OJcrwhUdoz UrBw== MIME-Version: 1.0 X-Received: by 10.140.42.138 with SMTP id c10mr7726451qga.24.1394037756533; Wed, 05 Mar 2014 08:42:36 -0800 (PST) Received: by 10.224.8.137 with HTTP; Wed, 5 Mar 2014 08:42:36 -0800 (PST) In-Reply-To: References: <9BA45ADB-3005-4689-A9D3-932CB9F2F84E@FreeBSD.org> Date: Wed, 5 Mar 2014 08:42:36 -0800 Message-ID: Subject: Re: importing sam leffler's libstatfoo into -HEAd From: Adrian Chadd To: Scot Hetzel Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current , Rui Paulo , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 16:42:37 -0000 Yup, I've renamed it libbsdstat. http://people.freebsd.org/~adrian/patches/20140304-libbsdstat-2.diff I'm doing a universe run right now. -a On 5 March 2014 08:34, Scot Hetzel wrote: > On Tue, Mar 4, 2014 at 11:16 PM, Adrian Chadd wrote: >> On 4 March 2014 20:19, Rui Paulo wrote: >>> On 4 Mar 2014, at 18:31, Adrian Chadd wrote: >>> >>>> hi, >>>> >>>> i'd like to import the libstatfoo code from sam into -HEAD. >>>> >>>> It's used by some of the wifi tools to print out periodic and global >>>> statistics. It abstracts away the gathering, printing and formatting >>>> bits. >>>> >>>> I'm hoping that we can adapt some of the other base tools to use it >>>> and then teach it to print out statistics in other (machine parsable) >>>> formats, so we don't have to keep hacking at the tools to do this. >>>> >>>> The initial import: >>>> >>>> http://people.freebsd.org/~adrian/patches/20140304-libbsdstatfoo.diff >>> >>> While there, could you please rename it? libstatfoo is a pretty bad name... >> >> I'm open to suggestions, but I don't want to get bogged down by sheds. >> > > lib/libbsdstatfoo -> lib/libbsdstat[,istics] > lib/libbsdstatfoo/statfoo.c -> lib/libbsdstat[,istics]/bsdstat[,istics].c > lib/libbsdstatfoo/statfoo.h -> lib/libbsdstat[,istics]/bsdstat[,istics].h > > Then change all occurrences of statfoo/STATFOO in those files to > bsdstat[,istics]/BSDSTAT[,ISTICS]. > > > -- > DISCLAIMER: > > No electrons were maimed while sending this message. Only slightly bruised.