From owner-soc-status@FreeBSD.ORG Wed Jun 11 05:58:57 2014 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7AEDB7CD for ; Wed, 11 Jun 2014 05:58:57 +0000 (UTC) Received: from mail-qa0-x229.google.com (mail-qa0-x229.google.com [IPv6:2607:f8b0:400d:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 367822BEB for ; Wed, 11 Jun 2014 05:58:57 +0000 (UTC) Received: by mail-qa0-f41.google.com with SMTP id cm18so3137885qab.14 for ; Tue, 10 Jun 2014 22:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=F8oPd24ybI4C/NGJcIrRM0P+hGAdMirCvHiiRshYufE=; b=iE4kvvAEmCQmEZ7Pl+69YBmyoCnBgoiatEiXjTCWMDkkWe1gWoDaxWIJdstwSaZhR1 HLFNtWo309Ys3i1EcePfg9dy7zthcdKXuEw6wykpgWVrk8Eppz9VsIyqohR24wxo01B4 j0Yn8Nau7r7xOeFRvgqVd4gfig1HhRX/VF5hQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=F8oPd24ybI4C/NGJcIrRM0P+hGAdMirCvHiiRshYufE=; b=WJ/wvMD2mXuzoa5mPWUPInXZ6ZkWvTzQTE6K9muLBW2iH7muiDvc0Cq55mbZsFgvkh i+tMnz73X76rO0+bNFt/rUahQYmPQ/CaIOcS0lFxJSHmiOvsolX2ZO80cORDXF4ufELG MgmQcimuq+I/lLKWejJue0CS4ezVyLxD9eUP81/F7755TRWHHUPgSnHTkqsRh534JjY2 WlNPsVw6ByTICfwM0pnteGs0iYbpY1gk+YbQrYKShROYaJ0CKVHhRWGzv3OwbQARzadj N9N6e6+w7sEpiGARGQQymM1QLu6l2ZyYOVMBnya7zNhXp805Yj1AJOsNKPxRwLFr8tes YHBw== X-Gm-Message-State: ALoCoQnu3964eGj92kNVV2mox3gEoPysJHNUOQnNmaRFutq8Uu0E/hI61YmMp+HhAMv8HZgtAsUR X-Received: by 10.224.7.6 with SMTP id b6mr49012523qab.45.1402466336123; Tue, 10 Jun 2014 22:58:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.222.131 with HTTP; Tue, 10 Jun 2014 22:58:26 -0700 (PDT) In-Reply-To: <2F779B73-EAC5-49B4-B3E8-7A81109EC166@mail.bg> References: <8D1B686D-1AAA-4E07-9270-E42699110561@mail.bg> <2F779B73-EAC5-49B4-B3E8-7A81109EC166@mail.bg> From: Eitan Adler Date: Tue, 10 Jun 2014 22:58:26 -0700 Message-ID: Subject: Re: [Machine readable output from userland utilities] report To: Zaro Korchev Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: soc-status@freebsd.org X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 05:58:57 -0000 Sweet! On 9 June 2014 06:22, Zaro Korchev wrote: > Hi everybody > > This week I continued adding structured output capabilities to packages. > > I have modified fstat in the base system. I have also a lot of work done = on netstat but it's pretty big and so I'm not finished with it yet. > I made a macro that simplifies using string leterals as map keys in libso= l. I'm in the process of making the tools I have already converted use it. = This will slightly reduce the complexity of the code and hopefully decrease= the amount of possible bugs : Cool. > Most of the changes I have committed to the svn server (I have left out t= he changes that don't compile at the moment). > One issue I encountered is that currently some integers are displayed in = hexadecimal but it's possible that the underlying output format does not su= pport hexadecimal integers (as is the case with JSON). At the moment I'm ju= st displaying them as decimal numbers. I would be glad to hear if somebody = has a better suggestion. I think its okay to output this as a string literal too. This is up to you and likely depends on how much work it would take to support this. --=20 Eitan Adler