<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pkgsrc/sysutils/lsof, branch pkgsrc_2012Q2</title>
<subtitle>[no description]</subtitle>
<id>https://git.osdyson.ru/mirror/pkgsrc/atom?h=pkgsrc_2012Q2</id>
<link rel='self' href='https://git.osdyson.ru/mirror/pkgsrc/atom?h=pkgsrc_2012Q2'/>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/'/>
<updated>2011-09-03T12:32:32Z</updated>
<entry>
<title>welcome to 4.84</title>
<updated>2011-09-03T12:32:32Z</updated>
<author>
<name>christos</name>
<email>christos</email>
</author>
<published>2011-09-03T12:32:32Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=d3b07cb2a084e1400b851d27f5999dc35f406d2e'/>
<id>urn:sha1:d3b07cb2a084e1400b851d27f5999dc35f406d2e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix build problem caused by tmpfs changes in NetBSD-current.</title>
<updated>2011-06-20T10:19:54Z</updated>
<author>
<name>tron</name>
<email>tron</email>
</author>
<published>2011-06-20T10:19:54Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=2733834d516f716b22684b96a9e20150d5958725'/>
<id>urn:sha1:2733834d516f716b22684b96a9e20150d5958725</id>
<content type='text'>
</content>
</entry>
<entry>
<title>When we moved from fd_ofiles to a struct fdtab, the fd_ofiles became</title>
<updated>2011-03-21T00:22:02Z</updated>
<author>
<name>jym</name>
<email>jym</email>
</author>
<published>2011-03-21T00:22:02Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=d7721e3062266684acca62161e06390c53a00e00'/>
<id>urn:sha1:d7721e3062266684acca62161e06390c53a00e00</id>
<content type='text'>
an array of pointer (in struct fdtab) rather than a pointer of pointers.

Sadly for us, no, arrays and pointers are not equivalent from a memory
perspective: while pointers from/to another address space can
be consumed by kvm(3) to query for data in kernel space, arrays
are more tricky, especially when their content is copied in userland:
they are part of the copied struct.

Address of array members are only valid in their own address space,
in our case userland, which is (fortunately?) different from kernel space.
This breaks the various kvm_read() calls that query for file descriptor
information. Consequence: lsof(1) cannot print filedescriptor information
(starting from 5.99.14), and silently ignores the errors, as using
the userland fdtab (``dt'' variable) is not valid for kernel.

Fix that by using the ``fd_dt'' member of struct filedes, which stores
the address of the fdtab struct in kernel address space. Took a few hours
to understand what was going on with lsof(1), hmmm.

Luckily, fstat(1) uses the proper model (checked about 5min ago). Why
lsof(1) decided not to log an error on kvm_read() is... a good question.

Bump rev.
</content>
</entry>
<entry>
<title>fix build on FreeBSD</title>
<updated>2010-05-14T19:01:11Z</updated>
<author>
<name>tez</name>
<email>tez</email>
</author>
<published>2010-05-14T19:01:11Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=0263305c106907adea8725f22e9c376292128ae2'/>
<id>urn:sha1:0263305c106907adea8725f22e9c376292128ae2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update lsof to 4.83</title>
<updated>2010-05-10T08:21:41Z</updated>
<author>
<name>sbd</name>
<email>sbd</email>
</author>
<published>2010-05-10T08:21:41Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=41f78610f01f9c77e8cf618e1b477b0c3d662e37'/>
<id>urn:sha1:41f78610f01f9c77e8cf618e1b477b0c3d662e37</id>
<content type='text'>
Release Notes:

4.83            January 18, 2010
		Converted Solaris 10 and above ZFS support to use the CTF
		debugger library, libctf.  Code was supplied by Robert
		Byrnes &lt;Robert.Byrnes@deshaw.com&gt;.

		Corrected a typo in the testing of the LINUX_HASSELINUX
		environment variable in the Configure script.  The error
		was reported by Mike Frysinger &lt;vapier@gentoo.org&gt;.
		At Mike's request made Configure script accept LSOF_RANLIB
		(ranlib command), LSOF_CFGF (additional configuration flags)
		and LSOF_CFGL (additional library specifications) from the
		environment.

		Enabled complilation of Solaris 10 lsof after a recent Sun
		patch which changed the PC file system's structure. Peter
		Vernam &lt;pvernam@draper.com&gt; reported the problem and helped
		with the fix.

		Made the sort of configuration CFLAGS in the CkTestDB
		script impervious to locale settings.

		Ported to Solaris 11, using a test system kindly provided
		by David Day &lt;dday76@gmail.com&gt;.

		Adjusted to the disappearance of &lt;nfs/rpcv2.h&gt; in FreeBSD
		8.0-BETA1.

		Changed Solaris node type lookup to a hashed method and
		added some ability for it to handle duplicate vnodeop names
		in /dev/ksyms.

		Updated for FreeBSD 9.0-CURRENT.  Andrzej Tobola
		&lt;ato@iem.pw.edu.pl&gt; provided a test system.  Extends the
		fix to FreeBSD 6.0 and above via a Configure test and a
		compile-time definition.  The need for the extension was
		reported by Erik Trulsson &lt;ertr1013@student.uu.se&gt;&gt;

		Made corrections to FAQ typographical errors, suggested
		by Josh Soref &lt;timeless@gmail.com&gt;.

		Added __UCLIBC__ test to Linux dlsof.h so lsof would compile
		on an Intel ARM XScale processor.  The addition was provided
		by Doug Kehn &lt;rdkehn@yahoo.com&gt;.

		Added test for &lt;utmpx.h&gt; to FreeBSD configuration.  Improved
		its use in lsof.h.  The changes were supplied by Martin Wilke
		&lt;miwi@FreeBSD.org&gt;.

4.82            March 25, 2009
		Corrected an over-zealous exclusion test that caused
		lsof to report nothing when it was given no arguments
		and built with HASSECURITY and HASNOSOCKSECURITY enabled.
		Joshua Kinard &lt;kumba@gentoo.org&gt; reported the bug and
		supplied information for reproducing it.

		Based on a report from Dan Trinkle &lt;trinkle@cs.purdue.edu&gt;
		corrected use of &lt;sys/utsname.h&gt; for 32 bit Solaris 10
		and above compilations.  Simultaneously eliminated a
		casting complaint in arg.c and updated Configure to use
		the appropriate 64 bit compilation option (-xarch=v9 or
		-m64) with the Solaris Sun C compiler.

		Updated for FreeBSD 7.1-PRERELEASE with information
		supplied by Larry Rosenman &lt;ler@lerctr.org&gt;.

		Updated the Darwin libproc sources with changes from
		Allan Nathanson &lt;ajn@apple.com&gt;.  Tested them on a iMac
		mini, provided by Apple Inc.  Allan also provided man
		page corrections.

		Updated the FreeBSD Makefile to use the ${MAKE} variable
		for ZFS dnode2.c module compilation, based on a suggestion
		from Alexis Ballier &lt;aballier@gentoo.org&gt;.

		Improved the Solaris VxFS library location test, based on a
		suggestion from Jason Fortezzo &lt;fortezza@mechanicalism.net&gt;.
		Jason tested the change.

		Updated Solaris 10 ZFS support for ZFS version 4 and ZFS
		pool version 10, using a test system kindly provided by
		Vladislav Nespor &lt;vladislav.nespor@id.ethz.ch&gt;.  Renata
		Maria Dart &lt;renata@slac.stanford.edu&gt; tested on ZFS
		version 4, verifying that the update works there, too.
		(ZFS pool version 10 is apparently the ZFS version shipped
		with the 10/08 update to Solaris.  The original ZFS
		support targeted ZFS version 3.)

		I still consider ZFS support in Solaris lsof a hack,
		because it depends on a znode structure definition that
		I developed using dbx.  Sun is remiss in not distributing
		the ZFS header files used to build the distributed kernel.

		Because of the znode structure definition hack, I can't
		guarantee that lsof ZFS support will work for any other
		versions of ZFS.

		Solaris 10: adjusted to a change in the way devices are
		stored in the kernel; fixed a problem in zone handling;
		and added rudimentary sharedfs support.  Carson Gaspar
		&lt;carson@taltos.org&gt; reported the device number problem,
		provided a test system, and tested the changes.  Peter
		Vines &lt;psv2b@eservices.virginia.edu&gt; reported the zone
		handling problem and tested the fix.

		Adapted to FreeBSD 8.0-CURRENT changes in device number
		computation.  Problem was reported by Erwin Lansing
		&lt;erwin@FreeBSD.org&gt;.  Larry Rosenman &lt;ler@lerctr.org&gt;
		provided a test system.

		Corrected Solaris Configure test for appropriate VxFS
		library when using gcc to compile lsof.

		Updated for loss of KAME IPv6 FreeBSD accommodations.

		Adapted to FreeBSD 7.2.  Made Configure script recognized
		FreeBSD 6.3.

4.81            October 21, 2008
		Updated the Darwin libproc sources with changes from
		Allan Nathanson &lt;ajn@apple.com&gt;.  Tested them on a iMac
		mini, provided by Apple Inc.

		Changed dummy declarations in library source files to
		eliminate complaints about unused variables and empty
		object files.  This change may not work on dialects I
		can no longer test; it has been tested on some versions
		of AIX, Darwin, FreeBSD, Linux and Solaris.

		At the request of Hal Brooks &lt;hal@uga.edu&gt; added support
		for Linux /proc/net/packet files.  Hal tested it.

		Added socket file only performance enhancements to Linux
		and PSTAT-based HPUX lsof.

		Added htonl call around improper usage of INADDR_LOOPBACK;
		report from an Apple engineer forwarded by Allan Nathanson
		&lt;ajn@apple.com&gt;.

		Adjusted for FreeBSD-8.0 change in device number handling.
		The adjustment should work for FreeBSD 5 and above, should
		the 8.0 change be propagated downward.  The problem was
		reported by Pav Lucistnik &lt;pav@FreeBSD.org&gt;.  An updated
		test system was provided by Erwin Lansing &lt;erwin@FreeBSD.org&gt;.

		Reduced AIX support to version 5.3, since test systems with
		older versions are no longer available to me.

		At the request of Marjo F. Mercado &lt;mmercado@xceedium.com&gt;
		and Phil Shin &lt;pshin@xceedium.com&gt; applied some speed
		improvements to lsof, particularly when the files of
		interest are /Internet files -- i.e., selected with lsof's
		-i" option.  Added a two new options to assist the
		improvements: 1) "-c^&lt;command&gt;" to tell lsof to exclude the
		named command(s); and 2) "-stcp|ud&gt;:[^]state' to tell lsof
		to include in its reporting or exclude ('^') from its
		reporting Internet files in the named states (e.g., LISTEN,
		^CLOSE_WAIT, IDLE, etc.)  For the most part these changes
		apply only to AIX, Darwin, FreeBSD, PSTAT-based HP-UX, Linux
		and Solaris, since those are the only places I could test
		them.  They are controlled by the HASTCPUDPSTATE definition
		in each dialect's machine.h header file.  Marjo and Phil
		provided HP-UX 11.23 and 11.31 test systems.

		Fixed a stat(2) problem on HP-UX 11.31 while testing the
		speed improvements.

		Adjusted for kernel header file changes in FreeBSD
		8.0-CURRENT.  Larry Rosenman &lt;ler@lerctr.org&gt; provided
		a test system.

		Added a warning for Solaris systems where VxFS node info
		can't be obtained from the VxFS utility library.  The
		warning was requested by Tom Matthews &lt;Tom.MATTHEWS@rbs.com&gt;.

		Corrected mishandling of file system path name arguments
		that have trailing slashes, except, of course, the root
		file system, "/".  Allan Nathanson &lt;ajn@apple.com&gt; reported
		the bug.

4.80            May 12, 2008
		Updated for a FreeBSD 7.0 and above byte level locking
		change.  The problem was reported by Conrad J. Sabatier
		&lt;conrads@cox.net&gt;, who helped test the update.  Wesley
		Shields &lt;wxs@FreeBSD.org&gt; provided an 8.0-CURRENT test
		system.

		Propagated the FreeBSD 7.0 and above locking changes to
		FreeBSD 6.x, based on a report from Edwin Groothuis
		&lt;edwin@FreeBSD.org&gt;.

		Added warnings for unsupported dialects or versions.

		Added Linux support for the UDPLITE protocol.  Eric
		Dumazet &lt;dada1@cosmosbay.com&gt; supplied a patch.

		Added a missing quote to the Configure script's
		FreeBSD stanza.

		Added a usage.o rule to the HP-UX PSTAT-based
		Makefile.  I mistakenly deleted the rule at revision
		4.79.  The missing rule was reported by Kawaljeet Kaur
		&lt;kawaljeet.malviya@gmail.com&gt; who tested the corrected
		Makefile.

4.79            April 15, 2008

		**************** IMPORTANT NOTE ******************
		*                                                *
		* Lsof support has been reduced to the following *
		* dialects: AIX, FreeBSD, Linux and Solaris, and *
		* only in selected versions of those dialects.   *
		* The selected versions are listed in this file  *
		* and in other lsof documentation.               *
		*                                                *
		* I have made this move because of retirement    *
		* and because I no longer have many test systems *
		* available to me.                               *
		*                                                *
		* Vic Abell                                      *
		*                                                *
		**************************************************

		Fixed a Solaris VXFS permission problem when accessing
		the VXFS inode offsets.  The bug was reported by
		Gregory A. Ivanov &lt;ivga@mts.ru&gt;.  Gregory tested the
		fix.

		Moved an #include &lt;string.h&gt; later in FreeBSD dlsof.h
		to enable compilation on recent FreeBSD releases.  The
		change was supplied by Roy Marples &lt;uberlord@gentoo.org&gt;.

		Improved Linux /proc file stream reading speed by applying
		an expanded version of a patch from Eric Dumazet
		&lt;dada1@cosmosbay.com&gt; that allocates a page size buffer
		to each stream.  Improved TCP, TCP6, UDP and UDP6 hashing
		by determining the hash bucket count from the /proc/net
		sockstat and sockstat6 files.  The improvement was
		suggested by Eric and he provided sample code.  Eric also
		tested both improvements.

		Modified Configure script to build lsof on FreeBSD
		6.2.  Tested it on a system provided by Larry Rosenman
		&lt;ler@lerctr.org&gt;.

		Fixed a Linux maps file processing bug that prevented path
		names from having an embedded colon.  James Lingard
		&lt;jchl@arastra.com&gt; reported the bug and helped with its
		fix.

		Based on reports from Eric Dumazet and Samuel Thibault
		&lt;samuel.thibault@ens-lyon.org&gt; added support for the
		Linux 2.6.22 kernel's /proc/&lt;PID&gt;/fdinfo files -- i.e.,
		file offset and flags.  Samuel Thibault provided a test
		system.

		Fixed a Linux UNIX socket memory leak, reported by
		Philip Shin &lt;pshin@xceedium.com&gt;.  Phillip supplied the
		fix.

		With generous assistance from HP added support for an HP-UX
		11.23 patch that makes TLI/XTI socket address information
		available.

		Fixed a header file problem for FreeBSD 6.2 on the Alpha
		architecture.  The problem was reported by Pekka Honkanen
		&lt;phonkane@cc.hut.fi&gt;.  Pekka tested the fix.

		Based on a report and using suggested fixes from Karel Zak
		&lt;kzak@redhat.com&gt;, made these changes to Linux lsof: corrected
		a getpidcon() error message; insured that inode numbers are
		handled correctly for their unsigned long long type; and
		improved SELinux handling.  At the request of Alon Bar-Lev
		&lt;alonbl@gentoo.org&gt; added the LINUX_HASSELINUX environment
		variable to enable or inhibit SElinux support unconditionally.

		Updated Configure for FreeBSD 8.0-CURRENT and tested lsof on
		AMD64 there.

		Added a patch provided by Oles Hnatkevych
		&lt;don_oles@able.com.ua&gt; for FreeBSD systems where the root
		file system is on a CD9660 device.

		Added compensation for the disappearance of FMARK and FDEFER
		from the FreeBSD 8.0-CURRENT &lt;sys/file.h&gt;.

		Updated FreeBSD lsof with ZFS support.  Larry Rosenman
		&lt;ler@lerctr.org&gt;, Erwin Lansing &lt;erwin@FreeBSD.org&gt;, Wesley
		Shields &lt;wxs@atarininja.org&gt; and Dmitry Morozovsky
		&lt;marck@rinet.ru&gt; provided test systems.

		Fixed a socket file identification problem reported by
		Pavol Rusnak &lt;stick@gk2.sk&gt;.  Pavol also reported the
		cause of the problem.

		Added the ability to format the repeat mode marker line
		with strftime(3), where the dialect supports the
		localtime(3) and strftime(3) C library functions.  The
		addition was suggested by Mike Depot &lt;mdepot@comcast.net&gt;,
		who also tested it.  The addition required creating a new
		main lsof source module, util.c, that contains functions
		whose compilation conflicts with the general header file
		tree defined by lsof.h and dlsof.h.

		Based on reports from Andrei V. Lavreniyuk
		&lt;andy.lavr@reactor-xg.kiev.ua&gt; and Pav Lucistnik
		&lt;pav@FreeBSD.org&gt; updated the FreeBSD 7.0 and above
		file lock handling to use new locking structures.  The
		update requires a terrible hack to get a definition for
		the lock owner structure from a kernel source module
		into a local lsof header file.
</content>
</entry>
<entry>
<title>Update the master sites</title>
<updated>2010-04-30T07:30:28Z</updated>
<author>
<name>sbd</name>
<email>sbd</email>
</author>
<published>2010-04-30T07:30:28Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=7a99ed89e65626679d08a1cc158cffcd7e24aaca'/>
<id>urn:sha1:7a99ed89e65626679d08a1cc158cffcd7e24aaca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Enable the tests, and add an "opt" targent so "make opt" can be used to run</title>
<updated>2010-04-30T07:27:16Z</updated>
<author>
<name>sbd</name>
<email>sbd</email>
</author>
<published>2010-04-30T07:27:16Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=1bf08d05f92c5d000880029fac45a3bea76ee88d'/>
<id>urn:sha1:1bf08d05f92c5d000880029fac45a3bea76ee88d</id>
<content type='text'>
the optional tests.
</content>
</entry>
<entry>
<title>Move lsof from using the LSOF_MORE_SECURE and LSOF_LESS_SECURE_SOCKETS to</title>
<updated>2010-04-30T06:53:06Z</updated>
<author>
<name>sbd</name>
<email>sbd</email>
</author>
<published>2010-04-30T06:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=1d3aaddd92ca27c55d363b4cd5474a5a962f5142'/>
<id>urn:sha1:1d3aaddd92ca27c55d363b4cd5474a5a962f5142</id>
<content type='text'>
using pkg options lsof-more-secure and lsof-less-secure-sockets.

Also change the way the option are applied, the same way that the Customize
script does and it works on all supported dialects.
</content>
</entry>
<entry>
<title>Reset maintainer, developer lost his commit bit.</title>
<updated>2010-03-21T16:29:38Z</updated>
<author>
<name>wiz</name>
<email>wiz</email>
</author>
<published>2010-03-21T16:29:38Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=4e824c5ae5a9a482961fcacd963e361cfd5c375d'/>
<id>urn:sha1:4e824c5ae5a9a482961fcacd963e361cfd5c375d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make this build again on netbsd-current.  Bump PKGREVISION to 5.</title>
<updated>2009-08-11T20:53:06Z</updated>
<author>
<name>apb</name>
<email>apb</email>
</author>
<published>2009-08-11T20:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=dd2989dc3cf86f3da210867eecfe59eacec70a37'/>
<id>urn:sha1:dd2989dc3cf86f3da210867eecfe59eacec70a37</id>
<content type='text'>
</content>
</entry>
</feed>
