Update lsof to 4.83

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 <Robert.Byrnes@deshaw.com>.

		Corrected a typo in the testing of the LINUX_HASSELINUX
		environment variable in the Configure script.  The error
		was reported by Mike Frysinger <vapier@gentoo.org>.
		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 <pvernam@draper.com> 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 <dday76@gmail.com>.

		Adjusted to the disappearance of <nfs/rpcv2.h> 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
		<ato@iem.pw.edu.pl> 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 <ertr1013@student.uu.se>>

		Made corrections to FAQ typographical errors, suggested
		by Josh Soref <timeless@gmail.com>.

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

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

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 <kumba@gentoo.org> reported the bug and
		supplied information for reproducing it.

		Based on a report from Dan Trinkle <trinkle@cs.purdue.edu>
		corrected use of <sys/utsname.h> 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 <ler@lerctr.org>.

		Updated the Darwin libproc sources with changes from
		Allan Nathanson <ajn@apple.com>.  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 <aballier@gentoo.org>.

		Improved the Solaris VxFS library location test, based on a
		suggestion from Jason Fortezzo <fortezza@mechanicalism.net>.
		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 <vladislav.nespor@id.ethz.ch>.  Renata
		Maria Dart <renata@slac.stanford.edu> 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
		<carson@taltos.org> reported the device number problem,
		provided a test system, and tested the changes.  Peter
		Vines <psv2b@eservices.virginia.edu> 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
		<erwin@FreeBSD.org>.  Larry Rosenman <ler@lerctr.org>
		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 <ajn@apple.com>.  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 <hal@uga.edu> 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
		<ajn@apple.com>.

		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 <pav@FreeBSD.org>.  An updated
		test system was provided by Erwin Lansing <erwin@FreeBSD.org>.

		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 <mmercado@xceedium.com>
		and Phil Shin <pshin@xceedium.com> 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^<command>" to tell lsof to exclude the
		named command(s); and 2) "-stcp|ud>:[^]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 <ler@lerctr.org> 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 <Tom.MATTHEWS@rbs.com>.

		Corrected mishandling of file system path name arguments
		that have trailing slashes, except, of course, the root
		file system, "/".  Allan Nathanson <ajn@apple.com> 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
		<conrads@cox.net>, who helped test the update.  Wesley
		Shields <wxs@FreeBSD.org> 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
		<edwin@FreeBSD.org>.

		Added warnings for unsupported dialects or versions.

		Added Linux support for the UDPLITE protocol.  Eric
		Dumazet <dada1@cosmosbay.com> 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
		<kawaljeet.malviya@gmail.com> 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 <ivga@mts.ru>.  Gregory tested the
		fix.

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

		Improved Linux /proc file stream reading speed by applying
		an expanded version of a patch from Eric Dumazet
		<dada1@cosmosbay.com> 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
		<ler@lerctr.org>.

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

		Based on reports from Eric Dumazet and Samuel Thibault
		<samuel.thibault@ens-lyon.org> added support for the
		Linux 2.6.22 kernel's /proc/<PID>/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 <pshin@xceedium.com>.  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
		<phonkane@cc.hut.fi>.  Pekka tested the fix.

		Based on a report and using suggested fixes from Karel Zak
		<kzak@redhat.com>, 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
		<alonbl@gentoo.org> 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
		<don_oles@able.com.ua> 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 <sys/file.h>.

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

		Fixed a socket file identification problem reported by
		Pavol Rusnak <stick@gk2.sk>.  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 <mdepot@comcast.net>,
		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
		<andy.lavr@reactor-xg.kiev.ua> and Pav Lucistnik
		<pav@FreeBSD.org> 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.
This commit is contained in:
sbd 2010-05-10 08:21:41 +00:00
parent d9e0e0b5c1
commit 423e88e245
3 changed files with 21 additions and 22 deletions

View file

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.106 2010/04/30 07:30:28 sbd Exp $
# $NetBSD: Makefile,v 1.107 2010/05/10 08:21:41 sbd Exp $
DISTNAME= lsof_4.78
PKGNAME= ${DISTNAME:S/_/-/}.${OS_VERSION}
PKGREVISION= 5
DISTNAME= lsof_4.83
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= sysutils
MASTER_SITES= ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ \
ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/NEW/ \

View file

@ -1,13 +1,13 @@
$NetBSD: distinfo,v 1.78 2010/04/30 06:53:06 sbd Exp $
$NetBSD: distinfo,v 1.79 2010/05/10 08:21:41 sbd Exp $
SHA1 (lsof_4.78.tar.bz2) = 0379fc9f38a931ce19e8386e662314d96fc2a099
RMD160 (lsof_4.78.tar.bz2) = 50d71e500f1109cda717b73ce209c0e100a6dbe9
Size (lsof_4.78.tar.bz2) = 756729 bytes
SHA1 (lsof_4.83.tar.bz2) = 1aee4c8de6959d84613030a65e90855a922493bf
RMD160 (lsof_4.83.tar.bz2) = 9a03b41362d68f93d9e7c2db824c8af6df978aa1
Size (lsof_4.83.tar.bz2) = 753094 bytes
SHA1 (patch-aa) = 4469a5fed540e3c5635b6082efedc477ea96a382
SHA1 (patch-ab) = 1501d8b0e6fd2c61949ba0d447c7b726655725c4
SHA1 (patch-ac) = dac0fcdfee97d42c8f23684a4321519b9f8698d9
SHA1 (patch-ad) = 4bd73dea4770c7f5a43be0d096c26e7d6728dd2c
SHA1 (patch-ae) = 1d8c1c3baf9575631c23d3ced7b12fab1df95cd6
SHA1 (patch-af) = b52c15a507960ecf33a61a3cbd608a92ebac1188
SHA1 (patch-ag) = 2f14b7954976e3b3d43034e13bf31d14ca65e4e3
SHA1 (patch-ag) = 945d233d94a42510c47709554040534024f72926
SHA1 (patch-ah) = f7bee41b341e500bb8c802f9a5862dd64c30a38c

View file

@ -1,8 +1,8 @@
$NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $
$NetBSD: patch-ag,v 1.6 2010/05/10 08:21:41 sbd Exp $
--- Configure.orig 2007-04-24 21:00:22.000000000 +0200
--- Configure.orig 2010-01-18 19:01:14.000000000 +0000
+++ Configure
@@ -86,6 +86,7 @@ LSOF_VF=version
@@ -105,6 +105,7 @@ LSOF_VF=version
# $LSOF_LOCALSUFFIX local suffix for Makefile
# $LSOF_NBSD_BUFQH NetBSD <sys/bufq.h> copy status
# $LSOF_NBSD_PTYFS NetBSD ${NETBSD_SYS}/sys/fs/ptyfs/ copy status
@ -10,7 +10,7 @@ $NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $
# $LSOF_N_UNIXV *BSD system's kernel file
# $LSOF_PL patch level
# $LSOF_RANLIB randomizing command for the lsof library
@@ -2391,6 +2392,11 @@ return(0); }
@@ -2778,6 +2779,11 @@ return(0); }
# Validate the NetBSD version.
case $LSOF_VSTR in # {
@ -22,7 +22,7 @@ $NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $
1.2*)
LSOF_VERS="1002000"
;;
@@ -2447,10 +2453,36 @@ return(0); }
@@ -2834,10 +2840,36 @@ return(0); }
echo "!!!WARNING!!! Unsupported NetBSD version: $LSOF_VSTR"
echo "!!!WARNING!!! Configuring for NetBSD 3.0"
;;
@ -61,7 +61,7 @@ $NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $
;;
esac # }
fi # }
@@ -2464,6 +2496,10 @@ return(0); }
@@ -2851,6 +2883,10 @@ return(0); }
;;
3000000|3099000)
;;
@ -72,19 +72,19 @@ $NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $
*)
echo "Unknown NetBSD version: $LSOF_VERS"
rm -f $LSOF_HLP
@@ -2472,7 +2508,10 @@ return(0); }
@@ -2859,7 +2895,10 @@ return(0); }
esac # }
LSOF_CFGF="-DNETBSDV=$LSOF_VERS"
LSOF_CFGF="$LSOF_CFGF -DNETBSDV=$LSOF_VERS"
LSOF_TMP1="-DN_UNIXV=/netbsd"
- if test -r ${LSOF_INCLUDE}/util.h # {
+ if test -r /dev/ksyms # {
+ then
+ LSOF_TMP1="-DN_UNIXV=/dev/ksyms"
+ elif test -r ${LSOF_INCLUDE}/util.h # } {
+ elif test -r ${LSOF_INCLUDE}/util.h # {
then
grep -q getbootfile ${LSOF_INCLUDE}/util.h
if test $? -eq 0 # {
@@ -2871,6 +2910,7 @@ return(0); }
@@ -3258,6 +3297,7 @@ return(0); }
fi # }
LSOF_TMP2="sys/vnode.h"
LSOF_NBSD_PTYFS=0
@ -92,7 +92,7 @@ $NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $
if test -r ${LSOF_INCLUDE}/$LSOF_TMP2 # {
then
LSOF_TMP3="${LSOF_INCLUDE}/$LSOF_TMP2"
@@ -2948,6 +2988,24 @@ return(0); }
@@ -3335,6 +3375,24 @@ return(0); }
fi # }
fi # }
fi # }
@ -117,7 +117,7 @@ $NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $
if test "X$NETBSD_UVM" = "X" # {
then
grep -q UVM $LSOF_TMP3
@@ -3233,6 +3291,28 @@ return(0); }
@@ -3620,6 +3678,28 @@ return(0); }
LSOF_CFGF="$LSOF_CFGF -I`pwd`/dialects/n+obsd/include"
fi # }
fi # }
@ -146,7 +146,7 @@ $NetBSD: patch-ag,v 1.5 2009/05/01 12:56:50 apb Exp $
LSOF_CFGL="$LSOF_CFGL -lkvm"
LSOF_DIALECT_DIR=n+obsd
;;
@@ -4833,7 +4913,7 @@ fi # }
@@ -5300,7 +5380,7 @@ fi # }
echo "" >> $LSOF_MKFC
if test "X$LSOF_DEBUG" = "X" # {
then