From owner-freebsd-arch Wed May 1 22:23:17 2002 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id EB76637B419 for ; Wed, 1 May 2002 22:23:13 -0700 (PDT) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.2/8.12.2) with ESMTP id g425MkqE077485; Thu, 2 May 2002 07:22:47 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Julian Elischer Cc: Dag-Erling Smorgrav , arch@FreeBSD.ORG Subject: Re: deperlifying sockstat(1) In-Reply-To: Your message of "Wed, 01 May 2002 22:15:08 PDT." Date: Thu, 02 May 2002 07:22:46 +0200 Message-ID: <77484.1020316966@critter.freebsd.dk> From: Poul-Henning Kamp 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 In message , Ju lian Elischer writes: >> In message , Dag-Erling Smorgrav writes: >> >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? >> >> sysctl is way better than libkvm because it provides a chance >> for presentation. > >unless sockstat gets a -N -M capacity such as teh other similar programs.. The ratio of -N -M use to normal use is so low that it is no justification for creating a setuid program for the normal case. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message