Date: Thu, 6 Apr 1995 20:30:15 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@FreeBSD.org (FreeBSD hackers) Subject: Re: lsof 3.25 now available for fbsd 2.0 Message-ID: <199504061830.UAA11661@uriah.heep.sax.de> In-Reply-To: <9504061650.AA42466@teton.Mines.Colorado.EDU> from "Ade Barkah" at Apr 6, 95 10:50:10 am
next in thread | previous in thread | raw e-mail | index | archive | help
As Ade Barkah wrote: > > > Does this make sense? I'm perfectly able to look at any open file > > with fstat(1). So why restrict lsof to less than fstat can do? > > Well, lsof is capable in displaying much more than fstat by default, > to the point that other user's privacy might be invaded, so I decided > to restrict the output. > > `lsof' uses the kernel name cache to get the file name associated with > an open descriptor (if any). fstat, on the other hand, limits itself > to the mountpoint of the file unless you specifically give the file > name as an argument. Accepted. This way, lsof can get more information than fstat (and possibly ``find / -inum ...''). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504061830.UAA11661>