*BSD News Article 76384


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.sdsmt.edu!news.mid.net!mr.net!nntp04.primenet.com!nntp.primenet.com!newspump.sol.net!spool.mu.edu!howland.erols.net!agate!theos.com!deraadt
From: deraadt@theos.com (Theo de Raadt)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: lsof and OpenBSD [was Re: List of OpenBSD change]
Date: 19 Aug 1996 03:37:29 GMT
Organization: Theo Ports Kernels For Fun And Profit, Inc.
Lines: 40
Message-ID: <DERAADT.96Aug18213729@zeus.theos.com>
References: <DERAADT.96Aug8144209@zeus.theos.com> <DERAADT.96Aug17013749@zeus.theos.com>
	<4v76ca$6c0@mozo.cc.purdue.edu>
NNTP-Posting-Host: zeus.theos.com
In-reply-to: abe@vic.cc.purdue.edu's message of 18 Aug 1996 13:38:18 GMT

In article <4v76ca$6c0@mozo.cc.purdue.edu> abe@vic.cc.purdue.edu (Vic Abell) writes:
   Unless I misunderstood the email that Theo and I exchanged about
   including lsof in the Open BSD distribution, he added exactly one
   lsof feature to OpenBSD's fuser: the ability to report local and
   foreign addresses on open socket files.  What I think he added
   might more accurately  be called an SGI IRIX fuser feature.

correct, ie (spaces truncated to make it easier to read)

root sshd 3620 5* internet stream tcp f888f000 199.185.137.3:22 <-> 140.92.12.175:1022
nobody httpd 204 11* internet stream tcp f88f5500 *:80

hmm, wonder what that second one is ;-)

   I don't currently offer an OpenBSD port, because I don't have a
   test system.  If anyone can provide one (Theo declined.), I would
   be glad to investigate the effort required.

right. i couldn't provide you with a system which gave you kmem read
access, so i was reluctant.

   As I understand it, Theo is reluctant to add lsof to the OpenBSD
   distribution because of the size of its source tree -- about 600KB
   in gzip'd tar archive form.  Of course, that includes source for
   many UNIX dialects and their variants, plus extensive documentation.
   A single dialect source tree with minimum documentation takes about
   100KB in gzip'd form.

that's true too. however, fstat is tiny.

       9      20     154 Makefile
     234    1422    8059 fstat.1
     783    2446   18038 fstat.c
    1026    3888   26251 total

fstat is quite a bit smaller.  note that we don't include gzip'd
archives in our source tree.  so for now we are sticking with fstat,
and people can compile lsof up easily.
--
This space not left unintentionally unblank.		deraadt@theos.com