From owner-freebsd-arch Wed May 1 16: 3:51 2002 Delivered-To: freebsd-arch@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 1B41137B425 for ; Wed, 1 May 2002 16:03:39 -0700 (PDT) Received: by elvis.mu.org (Postfix, from userid 1192) id E8CFFAE163; Wed, 1 May 2002 16:03:38 -0700 (PDT) Date: Wed, 1 May 2002 16:03:38 -0700 From: Alfred Perlstein To: Dag-Erling Smorgrav Cc: arch@freebsd.org Subject: Re: deperlifying sockstat(1) Message-ID: <20020501230338.GI98487@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Dag-Erling Smorgrav [020501 15:54] wrote: > I'm working on a C version of sockstat(1), and to complete it I need > to do nasty stuff like using libkvm and defining _KERNEL before > including some headers (see fstat). I'm starting to think that it > would be easier to just make a kern.sockstat sysctl node, and make > sockstat(1) a #!/bin/sh wrapper around sysctl(8). Ideas? What's wrong with extending the mess already in fstat or just popen()'ing it like the current sockstat does? -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message