Index of /packages/tools/lsof

      Name                    Last modified       Size  Description

[DIR] Parent Directory 23-Dec-2008 09:16 - [TXT] 00FAQ 20-May-2008 13:49 297k [TXT] 00INDEX 22-Oct-2008 14:44 4k [TXT] 00LSOF-L 08-May-2008 00:00 3k [TXT] CHECKSUMS 22-Oct-2008 14:36 2k [TXT] CHECKSUMS_4.81 22-Oct-2008 14:36 2k [TXT] FAQ 22-Oct-2008 14:44 302k [DIR] NEW/ 12-Nov-2008 07:15 - [DIR] OLD/ 12-Nov-2008 07:15 - [TXT] VB-95:07.abell 18-Dec-2003 00:00 8k [TXT] VB-95:07.abell.asc 18-Dec-2003 00:00 1k [TXT] Victor_A_Abell.gpg 04-Nov-2003 00:00 2k [TXT] Victor_A_Abell.pgp 17-Dec-2003 00:00 2k [DIR] binaries/ 12-Nov-2008 07:15 - [DIR] contrib/ 12-Nov-2008 07:15 - [CMP] lsof.tar.Z.sig 22-Oct-2008 14:36 1k [   ] lsof.tar.bz2 22-Oct-2008 14:36 760k [   ] lsof.tar.bz2.sig 22-Oct-2008 14:36 1k [   ] lsof.tar.gz 22-Oct-2008 14:36 1.0M [   ] lsof.tar.gz.sig 22-Oct-2008 14:36 1k [   ] 22-Oct-2008 14:44 145k [CMP] lsof_4.81.tar.Z.sig 22-Oct-2008 14:36 1k [   ] lsof_4.81.tar.bz2 22-Oct-2008 14:36 760k [   ] lsof_4.81.tar.bz2.sig 22-Oct-2008 14:36 1k [   ] lsof_4.81.tar.gz 22-Oct-2008 14:36 1.0M [   ] lsof_4.81.tar.gz.sig 22-Oct-2008 14:36 1k [TXT] lsof_man 22-Oct-2008 14:44 145k [TXT] mirrors 15-Apr-2008 00:00 1k [DIR] patches/ 12-Nov-2008 07:14 - [TXT] solaris_kaddr_filters 16-Mar-2004 00:00 9k

		    lsof (LiSt Open Files) version 4
			    (revision 4.81)

    | The latest release of lsof is always available via anonymous ftp |
    | from  Look in pub/tools/unix/lsof.         |


 |                 SECTION IN 00README FOR AN EXPLANATION.                |


    |      CHECK 00FAQ BEFORE REPORTING BUGS TO <>.       |
    | 00FAQ ALSO AT: |

    | IMPORTANT!  This README file explains how the lsof tar archive   |
    | is assembled -- it's a "wrapper" tar archive.  Please read the   |
    | explanation of its naming and construction, immediately          |
    | following the initial list of supported dialects.                |

Lsof version 4 lists open files for running UNIX processes.  It is a
descendent of ofiles, fstat, and lsof versions 1, 2, and 3.  It has
been tested recently on these UNIX dialects.

	AIX 5.3
	FreeBSD 4.9 for x86-based systems
	FreeBSD 7.0nd 8.0 for AMD64-based systems
	Linux 2.1.72 and above for x86-based systems
	Solaris 9 and 10

Lsof 4 may work on other versions of these dialects, but hasn't been
tested there recently.  Lsof versions 2 and 3 are still available and
may provide older dialect version support.  See the notes on them in
this file.

The pub/tools/unix/lsof/contrib directory on also
contains information on other ports.

Version 4 of lsof is distributed as bzip2'd, gzip'd and compressed tar
archives in the files:

These files are links to the current distribution, whose name includes
the revision number:<rev>.tar.bz2

<rev> is the revision number -- e.g., 4.81.  These archives are called
wrappers, because the lsof source tar archive, its GPG certificate
(lsof_<rev>_src.tar.sig), and some documentation files are wrapped
together inside them.  (The GPG certificate authenticates the source
tar archive.)  A tar archive with: a ``.bz2'' suffix has been
compressed with bzip2; ``.gz'', with gzip; and ``.Z'', with compress.

When the wrapper tar is gunzip'd or uncompressed, and its tar archive
contents are extracted, an lsof_4.81 subdirectory is created in the
directory where the extraction was performed.  The lsof_4.81
subdirectory contains these files:

	00.README.FIRST		contains introductory distribution

	README.lsof_4.81	contains instructions for the
				security-conscious on how to be
				sure that no one has tampered with
				the distribution.

	RELEASE_SUMMARY_4.81	is this file.

	lsof_4.81_src.tar       is a tar archive, containing the
				lsof sources.  When extracted with
				tar it creates a subdirectory named
				lsof_4.81_src in the directory
				where the extraction was performed.
				The lsof source files will be found
				in lsof_4.81_src.

	lsof_4.81_src.tar.sig   is a GPG certificate, authenticating
				the lsof_4.81_src.tar archive.  See the
				README.lsof_4.81 file for more
				information on GPG authentication of

If you've obtained this file and an lsof distribution from a mirror

Patches to lsof distributions may be found in the patches/ sub-
directory where you found lsof.tar.bz2, lsof.tar.gz or lsof.tar.Z.
If there are any patches to the current distribution, they will be
found in the patches/4.81/ branch.

(If you need a copy of gunzip, look for it at in

* The May 12, 2008 revision (4.80): adjusts to a change in FreeBSD 6.0 and
  above byte level locking; issues a warning for unsupported dialects or
  versions; supports Linux UDPLITE protocol; adds a missing quote to the
  FreeBSD Configure stanza; restores the usage.o rule to the HP-UX PSTAT-
  based Makefile.

* The October 21, 2008 revision (4.81): updates the Darwin libproc sources;
  changes dummy declarations in lib source file; adds support for Linux
  /proc/net/packet files; improves socket file only processing for Linux
  and PSTAT-based HP-UX; adds htonl call around INADDR_LOOPBACK usage;
  adjusts for a change in FreeBSD 8.0 device number handling; added -i
  speed improvements for AIX, Darwin, FreeBSD, PSTAT-based HP-UX, Linux
  and Solaris; fixes a PSTAT-based HP-UX 11.31 stat(2) problem; adjusts for
  kernel header file changes in FreeBSD 8.0-CURRENT; adds a Solaris VxFS
  warning, where appropriate; corrects mishandling of trailing slashes on
  path name arguments with more than one character.

Read the 00.README.FIRST in the lsof distribution first.

Read the 00DIST distribution file for more details on feature additions
and bug fixes.

The 00README distribution file has build instructions, dialect
descriptions, special feature discussions, and installation hints.

The 00FAQ file contains a list of frequently asked questions and their

The 00DCACHE file explains device cache file path formation.

The 00PORTING file contains information on porting lsof to other UNIX

The 00QUICKSTART file gives a quick introduction to using lsof.

The distribution files lsof.8 (nroff source) and (nroff
formatted output) contain the manual page for lsof; it is the only
other documentation besides the source code (it's included).

Version 4 Binaries

Version 4 binaries for some revisions, dialects, and platforms may be
found in pub/tools/unix/lsof/binaries.  Check the README files for
exact descriptions.  Check the dialect-specific Makefiles for
installation instructions.  CHECKSUMS and GPG certificates are provided
for authentication.

Please think very carefully before you decide to use a pre-built binary
instead of making your own from the sources.  Here are some points to

1. Lsof must run setgid or setuid.  Are you willing to trust that
   power to a binary you didn't construct yourself?

2. Lsof binaries may be generated on a system whose configuration
   header files differ from yours.  Under Digital UNIX (DEC OSF/1), for
   example, lsof includes header files from the machine's configuration
   directory, /sys/<name>.  Are you willing to gamble that your
   configuration directory's header files match the ones used to
   compile lsof?

3. Lsof is often configured with specific options that are determined
   from the configuration of the system on which it is configured --
   e.g., Solaris patch level, dynamic loader libraries, etc.  Are you
   sure that the lsof binary you retrieve will have been configured for
   your system? If you get a binary that is misconfigured for you, it
   may not work at all.

If you haven't already guessed, I believe firmly that you should
retrieve sources and build your own binary.  If you still want to use
the distribution binaries, please authenticate what you retrieved with
the GPG certificates; please compare checksums, too.

Version 4 Checksums

Security checksums -- both MD5 and sum(1) -- for revisions of lsof
version 4 are contained in the README.lsof_<rev> files in the wrapper
tar archives of pub/tools/unix/lsof.

The CHECKSUMS file, found with the distribution archives, contains
information on validating the archives with external MD5 checksums and
external GPG certificates.

GPG Certificates

The lsof wrapper tar archive includes a GPG certificate file in its
contained lsof_4.71_src.tar.sig file.

Binary files have detached GPG certificates that may be found in their
directories with ".sig" extensions.

The certificates are signed with my GPG public key, which may be found
in the file:

My key may also be available at some public key servers,

There is also authentication information in the CHECKSUMS file (a link
to CHECKSUMS_<rev>), found with the lsof distribution files.  CHECKSUMS
contains external MD5 checksums for the distribution files and
information on using the external GPG certificates, found with the lsof
distribution files.

Old Dialect Support

Remnants of source code and binaries for dialects for which lsof once
provided support may be obtained by request.  Send the request to

Dialects no longer supported include:

	Motorola V/88
	Pyramid DC/OSx
	Pyramid Reliant UNIX
	Sequent DYNIX
	SunOS 4.1.x

Generally I drop support for a dialect when I no longer have access to
a test system.

Lsof Version 2

The version 3 predecessor, revision 36 of version 2, is also available
upon request.  Send the request to

I recommend you avoid lsof version 2.  It's out of date and I no
longer provide support for it.  (Versions 3 and 4 support more
dialects, and have many enhancements, bug fixes, and improvements.)
Version 2 was tested on the following UNIX dialects:

	AIX 3.2.[1234] for the IBM RISC/System 6000
	DEC OSF/1 1.[23] and 2.0 for the DEC Alpha
	EP/IX 1.4.3 and 2.1.1 for the CDC 4680
	ETAV 1.17 for the ETA-10P*
	FreeBSD 1.0e for x86-based systems
	HP-UX [789].x for HP systems
	IRIX 4.0.5 and 5.1.1 for SGI systems
	NEXTSTEP 2.1, 3.0, 3.1 for NeXT systems
	Sequent Dynix 3.0.12 for Sequent Symmetry systems
	SunOS 4.1.[123] for Sun 3 and 4 systems
	SunOS 5.[13] (Solaris 2.[13]) for Sun 4 systems
	Ultrix 2.2 and 4.2 for DEC systems

(If you need a copy of gunzip, look for it at in

Version 2 Checksums

	(OLD/lsof236tar.gz) = f8a1ab3971ea2f6a3ea16752f84409e8

	39996   106 OLD/lsof236tar.gz

The file OLD/lsof236tar.gz.asc is a detached PGP certificate that may
be used to authenticate OLD/lsof236tar.gz with my PGP public key.  You
may find my PGP public key at:

Lsof Version 3

The last revision of lsof version 3, 3.88, may obtained by request.
Send the request to

I recommend version 4 over version 3.  It is the version I actively

Lsof version 3 was tested on these UNIX dialects:

	AIX 3.2.5, 4.1[.[1234]], and 4.2
	BSDI BSD/OS 2.0, 2.0.1, and 2.1 for x86-based systems
	DC/OSx 1.1 for Pyramid systems
	Digital UNIX (DEC OSF/1) 2.0, 3.0, 3.2, and 4.0
	EP/IX 2.1.1 for the CDC 4680
	FreeBSD, 2.0, 2.0.5, 2.1, 2.1.5 for x86-based
	HP-UX 8.x, 9.x, 10.01, 10.10, and 10.20
	IRIX 5.2, 5.3, 6.0, 6.0.1, and 6.[124]
	Linux 2.0.3[01] and 2.1.57 for x86-based systems
	NetBSD 1.0, 1.1, and 1.2 for x86 and SPARC-based
	NEXTSTEP 2.1 and 3.[0123] for NEXTSTEP architectures
	OpenBSD 1.2 and 2.0 for x86-based systems
	Reliant UNIX 5.43 for Pyramid systems
	RISC/os 4.52 for MIPS R2000-based systems
	SCO OpenServer 1.1, 3.0, and 5.0.[024] for x86-based 
	SCO UnixWare 2.1 and 2.1.1 for x86-based systems
	Sequent PTX 2.1.[1569], 4.0.[23], 4.1.[024], 4.2[.1],
	    and 4.3
	Solaris 2.[12345], 2.5.1, and 2.6-Beta
	SunOS 4.1.x
	Ultrix 4.2, 4.3, 4.4, and 4.5

Vic Abell <>
October 21, 2008