summaryrefslogtreecommitdiff
path: root/sysutils/lsof
AgeCommit message (Collapse)AuthorFilesLines
2022-06-28*: recursive bump for perl 5.36wiz1-2/+2
2022-05-25lsof: don't need to keep track of the parent vnode kva, save some RAMtnn1-9/+7
2022-05-25lsof: don't consume buffer space if we didn't add a '/'tnn1-1/+1
2022-05-25lsof: fix comparison operator, ride previous bumptnn1-1/+1
2022-05-25lsof: support kmem grovelling of current-era NetBSD rbtree kernel namecachetnn6-12/+289
2022-02-27lsof: fix typo in comment in previous commitgutteridge2-4/+4
2022-02-27lsof: fix builds on NetBSD as of 9.99.93 on 2022-01-17gutteridge2-43/+25
procfs.h had an inline function added that expects curlwp to be defined. It isn't needed by this code base, and I don't see any other way of fixing this than adding a basic definition to get this to compile. It looks "wrong", but this code base requires _KERNEL to be defined when including procfs.h, but we can't include lwp.h or machine/ cpu.h with that defined, header files that aren't available to userland get referenced and break the build that way, instead.
2021-11-11lsof: update to match NetBSD 8.x, 9.x, and 9.99.xgutteridge3-12/+24
2021-10-26sysutils: Replace RMD160 checksums with BLAKE2s checksumsnia1-2/+2
All checksums have been double-checked against existing RMD160 and SHA512 hashes
2021-10-07sysutils: Remove SHA1 hashes for distfilesnia1-2/+1
2021-09-29lsof: fix RELRO buildtnn1-2/+2
2021-05-24*: recursive bump for perl 5.34wiz1-2/+2
2020-08-31*: bump PKGREVISION for perl-5.32.wiz1-2/+2
2020-05-13lsof: fix wrong conditional added in patch-af 1.20tnn2-4/+4
machine/ptrace.h pulls in sys/module_hook.h after 2019-11-27 under _KERNEL This corresponds to NetBSD 9.99.19. sys/module_hook.h is not installed. Ergo sys/ptrace.h must be included /without/ defining _KERNEL.
2020-04-16Use fix for NetBSD 9.0 only on NetBSD 9.0, avoid changing other things.manu2-16/+40
Thanks to wiz@
2020-04-16Fix build on NetBSD 9.0manu2-32/+45
2020-04-11lsof: disable loading of kernel namecache on NetBSD after 9.99.54tnn2-3/+12
lsof expects to be able to walk the namecache as a linked list using kmem grovelling. The namecache on NetBSD now uses rbtree instead of hash buckets + linked list. While it's certainly possible to iterate an rbtree using kmem it's also more complicated and code doesn't exist yet. Unfortunately this means lsof for now doesn't resolve pathnames for type VREG.
2020-03-05lsof: fix build on -currenttnn3-25/+43
2019-11-04sysutils: align variable assignmentsrillig2-14/+14
pkglint -Wall -F --only aligned --only indent -r Manually excluded consolekit and dc-tools since pkglint didn't get the formatting correct.
2019-09-18lsof: needs -D__NAMECACHE_PRIVATE for "struct namecache" on -currenttnn1-2/+2
This only fixes the build, path names still seem to be somewhat broken.
2019-08-11Bump PKGREVISIONs for perl 5.30.0wiz1-2/+2
2019-01-06lsof: fix build on -currenttnn2-10/+20
2018-12-21lsof: fix two pkglint warningswiz1-2/+3
2018-12-09lsof: bump revisiontriaxx2-21/+44
* fix a warning in installation process * install scripts in share/examples * install doc in share/doc
2018-12-09lsof: trivial changes to Makefile to appease pkglinttriaxx1-10/+9
2018-12-08lsof: update to 4.91triaxx2-9/+8
o Change license to purdue (renamed from abell-94) o ChangeLog: 4.90 February 14, 2018 !!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! ! It is likely that this is the last lsof revision I ! ! will issue, unless serious bugs are detected, Stay ! ! tuned to lsof-l for information about future support ! ! of lsof. ! ! ! ! I thank all the many contributors to lsof over the ! ! many years (20+?) I have been distributing lsof ! ! versions 1, 2, 3 and 4. ! ! ! ! Vic Abell <abe@purdue.edu> ! ! ! !!!NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Taught the Configure script to create a dummy opt_random.h for FreeBSD systems whose <sys/random.h> includes it. Added support for the FreeBSD ZFUSE file system. Corrected the quoting in a Darwin putchar() statement in the dfile.c source file. Andrew Janke <floss@apjanke.net> reported my error. Added support for the FreeBSD DTYPE_PTS file descriptor and for unknown descriptors that reference the kernel's badfileops operation switch. Enabled FreeBSD 12.0 support. Tested the changes on systems provided by Larry Rosenman <ler@lerctr.org>. Enhanced -K option with the form "-K i" to direct lsof to (i)gnore tasks. A query from Rachel Kroll <rkroll@fb.com> suggested this option. Linux task reports now include both process and task command names, making lsof's "-c <name>" option work correctly. Added a patch to prevent NFS blocking in Linux supplied by Kristna Streitov <kstreitova@suse.com>. Installed a FreeBSD patch that prevents examining a TCP state structure during a race condition. The patch was supplied by Bryan Drewery <bdrewery@FreeBSD.org>. Updated FreeBSD for new UFS inode structure that lacks an i_dev member in the most recent 12.0-CURRENT. Larry Rosenman <ler@lerctr.org> reported the problem and provided a test system. Added "#define KLD_MODULE" to dlsof.h and dnode2.c to prevent <machine/cpuconf.h> from generating an "ARM_NARCH is 0" error. This is needed so lsof can access kernel structures. Larry Rosenman supplied the addition. Added recognition of the FreeBSD 11 file system name "nullfs". Jamie Landeg-Jones <jamie@catflap.org> supplied the fix. Added a patch from Larry Rosenman <ler@lerctr.org> that is needed on FreeBSD 12 so the lsof compilation can obtain the inpcb and tcpcb structures from their respective header files. Updated FreeBSD dmnt.c for the ino64 changes. Inserted a patch for Solaris 12.x to avoid compilation errors from <sys/aio_req.h>, based on information provided by Jorn Clausen <joern.clausen@uni-bielefeld.de>. Jorn tested the patch. Added performance enhancement that uses the FreeBSD closefrom() and dup2() C library functions when available. The enhancement was supplied by Conrad Meyer <cem@freebsd.org>. Corrected FreeBSD lsof's gathering of ZFS file device numbers. Updated lsof test library for FreeBSD. Updated socket optons information collection from the socket structure per changes supplied by Gleb Smirnoff <glebius@FreeBSD.org>. Added patch to dlsof.h that avoids a _KERNEL conflict with bzero. Mateusz Guzik <mjguzik@gmail.com> supplied the patch. Corrected test library to handle 64 bit FreeBSD device numbers. Added #defines for FreeBSD 12, src r324225, from Gleb Smirnoff <glebius@FreeBSD.org>. Incorporated Linux pseudoterminal endpoint processing (+|-E) provided by Masatake YAMATO <yamato@redhat.com> with access to test systems provided by Peter Schiffer <pschiffe@redhat.com>. Corrected Linux command extraction for commands that include parentheses -- e.g., "(sd-pam)". 4.91 March 26, 2018 A bug has been reported in the PTY endpoint processing of Linux lsof 4.90 by Peter Wu <peter@lekensteyn.nl>, making it necessary for me to release another revision of lsof. This revision applies two fixes that correct the Linux PTY endpoint processing bug. Masatake YAMATO <yamato@redhat.com> supplied the fixes.
2018-12-08lsof: update MASTER_SITES and set LICENSEtriaxx1-3/+4
2018-10-27lsof: Use "bsdtar" instead of "gtar" during buildtron1-9/+6
Remove unnecessary complex logic for optionally using "pax" as well
2018-08-22Recursive bump for perl5-5.28.0wiz1-1/+2
2018-01-01Sort PLIST files.rillig1-2/+2
Unsorted entries in PLIST files have generated a pkglint warning for at least 12 years. Somewhat more recently, pkglint has learned to sort PLIST files automatically. Since pkglint 5.4.23, the sorting is only done in obvious, simple cases. These have been applied by running: pkglint -Cnone,PLIST -Wnone,plist-sort -r -F
2017-08-30Fix lsof build on NetBSD-8.99.2kamil3-20/+54
Address /proc/#/ctl removal fallout.
2017-08-16Follow some http redirects.wiz1-2/+2
2017-06-22NetBSD>=8.99.1 needs __EXPOSE_MOUNT definedtnn3-15/+22
2017-02-12Remove outdated master sites.wiz1-12/+1
Remove NEW/ folder. We should only ever need / and /OLD/
2017-02-11* The July 7, 2015 revision (4.89): corrects an error I made in applying arodent2-8/+7
Solaris 11 patch; supports latest version of FreeBSD 11.0-CURRENT; adjusts for a missing bool typdef on i386 FreeBSD 10.0; fixes Linux UNIX socket search by name bug; adds Linux display of UNIX socket endpoint information; makes vm defintiions once again visible on FreeBSD 11.
2017-01-19Convert all occurrences (353 by my count) ofagc1-16/+16
MASTER_SITES= site1 \ site2 style continuation lines to be simple repeated MASTER_SITES+= site1 MASTER_SITES+= site2 lines. As previewed on tech-pkg. With thanks to rillig for fixing pkglint accordingly.
2016-07-09Bump PKGREVISION for perl-5.24.0 for everything mentioning perl.wiz1-1/+2
2015-12-29Update lsof to 4.88. From David H. Gutteridge in PR pkg/50487.bsiegert3-83/+73
Reduced to 50 the number of open file descriptors lsof attempts to close while trying to protect itself from a file descriptor exec() attack. This limits the overhead lsof incurs on systems that have large file descriptor limits, yet provides sufficient open descriptors for the library functions lsof calls. Updated for changes in FreeBSD 10 with advice from Eygene Ryabinkin <rea@freebsd.org>. Taught Configure to recognize FreeBSD 8.4. Herein am noting that lsof for Solaris 10 or 11 is no longer supported. I no longer have test systems. Some support is still available from Casper Dik <Casper.Dik@oracle.com> and a Solaris 11 patch he provided is included in this revision. Initialized local variables in the Linux process_id() function. Jia He <jiakernel@gmail.com> reported the problem. Added support for FreeBSD 11. Updated FreeBSD ZFS Configure stanza to supply a dummy opt_kdtrace.h when needed. Added tmpfs file system support for FreeBSD. Since a test system is no longer available, dropped the claim of FreeBSD 4.9 support. Added the +|-E options for Linux. -E displays endpoint info; +E displays endpoint info and endpopint files. Masatake YAMATO <yamato@redhat.com> requested this support and suggested code to implement it. Fixed a Linux bug handling processes whose command includes a non-printing character, particularly a NEWLINE character, and clarified printing of single '\\' characters in command and file names. Stephane Chazelas <stephane.chazelas@gmail.com> reported the problem. Added support for Linux RDMA and CRYPTO protocal names and UNIX socket type with code from Masatake YAMATO <yamato@redhat.com>. Fixed field output to insure that the field descriptor field is always selected, since it identifies the file set. The bug was reported by Gary Plewa <gary.m.plewa-1@lowes.com>.
2015-11-04Add SHA512 digests for distfiles for sysutils categoryagc1-1/+2
Problems found with existing digests: Package memconf distfile memconf-2.16/memconf.gz b6f4b736cac388dddc5070670351cf7262aba048 [recorded] 95748686a5ad8144232f4d4abc9bf052721a196f [calculated] Problems found locating distfiles: Package dc-tools: missing distfile dc-tools/abs0-dc-burn-netbsd-1.5-0-gae55ec9 Package ipw-firmware: missing distfile ipw2100-fw-1.2.tgz Package iwi-firmware: missing distfile ipw2200-fw-2.3.tgz Package nvnet: missing distfile nvnet-netbsd-src-20050620.tgz Package syslog-ng: missing distfile syslog-ng-3.7.2.tar.gz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
2015-06-12Recursive PKGREVISION bump for all packages mentioning 'perl',wiz1-2/+2
having a PKGNAME of p5-*, or depending such a package, for perl-5.22.0.
2015-02-26define dummy VFS_PROTOS(fsname) which is otherwise only available under _KERNEL.tnn1-1/+2
lsof for legacy reasons includes sys/mount.h without _KERNEL but msdosfs/msdosfsmount.h with _KERNEL. Fixes: /usr/include/msdosfs/msdosfsmount.h:255:12: error: a parameter list without types is only allowed in a function definition VFS_PROTOS(msdosfs);
2014-10-09Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles.wiz1-3/+1
2014-08-19On SunOS, take care of the misconfigured ranlib call, following thehauke1-1/+3
discussion in, and fixing, PR pkg/49034. While we are here, make sure the group lsof setgids to is the one owning /dev/kmem on SunOS ('sys').
2014-05-29Bump for perl-5.20.0.wiz1-1/+2
Do it for all packages that * mention perl, or * have a directory name starting with p5-*, or * depend on a package starting with p5- like last time, for 5.18, where this didn't lead to complaints. Let me know if you have any this time.
2014-03-27Update to 4.87ryoon2-7/+6
Changelog: 4.85 September 27, 2011 John Dzubera <Zube@CS.ColoState.EDU> kindly provided a patched Solaris 9 test system with the lgrp_root conflict and I was able to devise an automatic work-around for the conflict. The special note in .../dialects/sun/machine.h was removed and the 17.28.1 FAQ entry was modified to reflect the update. Added a Solaris 11 work-around for a typedef problem with <sys/mutex.h>. Carson Gaspar <carson@taltos.org> reported the problem and supplied the work-around. Added support for FreeBSD 7.4 and 8.2; tested on systems provided by Larry Rosenman <ler@lerctr.org>. Added support for 32 bit Solaris 11 lsof with mods supplied by Jan Wortelboer <J.H.P.Wortelboer@uva.nl>. Added Solaris 11 support for using an alternate genunix location. Bill Goodridge <bill@its.brooklyn.cuny.edu> reported the alternate location. Added further Linux cross configuration support to lsof's Configure script. The additional support was supplied by Grant Erickson <erick205@umn.edu>. See the descriptions of the LINUX_* environmen variables in 00XCONFIG for more information. Tested lsof on Linux kernel 2.6.32 and picked some lint that surfaced during the test. Added fixes and changes for Apple Mac OS X 10.6, provided by Allan Nathanson <ajn@apple.com>. Allan also provided a test system. Tested on FreeBSD 6.4 i386, using a test system provided by Terry Kennedy <TERRY@tmk.com>. Updated for recent FreeBSD ZFS changes on an 8.2 amd64 test system also provided by Terry. Changed documentation to indicate FreeBSD 7.x is no longer supported, since I no longer have a test system. Made some changes to the lsof man page, suggested by Navid <evi1m4chine@googlemail.com>. Added compensation for Solaris 10 systems that have patch 144488-10. The patch requires that the new header file <sys/socket_proto.h> be included while _KERNEL is defined. Brett Bartick <Brett.bartick@nomura.com> reported the problem first, followed by Stuart Anderson <anderson@ligo.caltech.edu>. Michael Hocke <michael.hocke@nyu.edu> suggested a work-around which I refined to limit it to the specific Solaris 10 instance and then tested on a system provided by Charles Stephens <cfs@cowlabs.com> Added the +|-e option for Linux. It exempts file systems named by path from function calls that might block in the kernel -- i.e., stat(2) and lstat(2), and when the +e form is used, readlink (2). The new packager of lsof for the Linux Fedora and RHEL distributions, Peter Schiffer <pschiffe@redhat.com>, asked for the feature so it could be used with Clearcase file systems, whose implementation can block stat(2) calls. I consider this feature very risky and easy to misuse -- e.g., specifying the file system as '/' would exempt all file systems. I don't intend to propagate this option to any other UNIX dialect that lsof currently supports. Made FreeBSD 9 adjustment. Fixed a Linux bug that prevented the display of paths for abstact UNIX sockets. Masatake Yamato <yamato@redhat.com> reported the bug and supplied a patch. Added compensation for the removal of RPC header files from GlibC 2.14 for Linux. Marek Behun <kabel@blackhole.sk> reported the problem and supplied a patch. Added support for Linux Netlink protocol. Masatake Yamato requested the support and supplied a patch. Peter Schiffer <pschiffe@redhat.com> provided a test system. Corrected Linux UDP6-lite path. The error was reported by Masatake Yamato and he also supplied a patch. 4.86 April 10, 2012 Lsof for AIX is no longer supported on any versions of that operating system. Added information about the clang compiler for FreeBSD to the FAQ. Corrected an arg.c bug in the accumulation of +|-e option values, reported by Peter Schiffer <pschiffe@redhat.com>. This correction was supplied as a patch to revision 4.85. Enabled FreeBSD 10 support and tested it there on a system provided by Larry Rosenman <ler@lerctr.org>. Updated for latest Solaris 11 with patches supplied by Carson Gaspar <carson@taltos.org>. Carson supplied a test system. Adjusted Linux file system search method to compensate for NFS mounts that have duplicate device numbers. The problem was reported by Peter Schiffer <pschiffe@redhat.com>, who provided a test system. At the request of Peter Schiffer <pschiffe@redhat.com>, added support for Linux SCTP socket files. Peter provided a test system. Applied a warning patch supplied by Peter. Added support for Mac OS X 10.7 (Lion), provided by Allan Nathanson <ajn@apple.com>. Allan also supplied a test system. Enabled FreeBSD 8.3 support and tested it there on a system provided by Larry Rosenman <ler@lerctr.org>. Corrected the FAQ information on ZFS with Solaris 10 after Steven Blackmon <stblackm@cisco.com> and Prasad Jampala <jampalp@cisco.com> pointed out that it was incorrect -- i.e., outdated by the libctf changes at revision 4.83. Added code to handle a Linux NFS-mounted root. Jia He <hejianet@linux.vnet.ibm.com> reported the need for this. 4.87 January 2, 2013 Added an entry to 00FAQ about lsof behavior when the HASSECURITY and HASNOSOCKSECURITY options are defined. Carson Gaspar <carson@taltos.org> pointed out the need for this clarification. Added a work-around for a missing definition of mach_port_t in Darwin 9 (Mac OS/X 10.5.8). The work-around was supplied by Jim Reid <jim@rfc1035.com>. Added support for Linux anon_inodefs, provided by Masatake YAMATO <yamato@redhat.com>. Documented a Solaris 9 and 10 portmap reporting problem (+M) in 00FAQ. The problem was reported by Clint Roberts <Clint.Roberts@ttius.com>. I have no solution to the problem, but discuss a possible work-around in the answer to this 00FAQ question: "Why doesn't lsof report portmap registrations for some Solaris versions?" Added FreeBSD support for the oldnfs and newnfs file system types. Daniel Braniss <danny@cs.huji.ac.il> reported the need for the addition. Added ICMP socket support for Linux with code provided by Masatake YAMATO <yamato@redhat.com>. Corrected the reporting of process group ID for libproc versions of Mac OS X with a patch from Jeff Trawick <trawick@gmail.com>. The patch has not been applied to Darwin kmem versions, because of little call for them and inadequate test system access. The patch has been tested on Mac OS X 10.8 (Mountain Lion), courtesy of a test system provided by Allan Nathanson <ajn@apple.com>. Added thread support to those FreeBSD versions that have ki_numthreads in their kinfo_proc structure. This also activates the -K option for those FreeBSD versions. Jeff Trawick reported problems with FreeBSD lsof when threads are present and this addition solves those problems. Made changes to 00FAQ and the distribution, suggested by Warren Young <warren@etr-usa.com>. The 00FAQ changes center on sections that discuss the -s option. The changes to the distribution include a ChangeLog file that is either a pointer to or a copy of 00DIST, the distribution notes. Added support to FreeBSD for using the clang compiler. Added Linux support for using the getxattr() call to obtain socket protocol identification when it is can't be obtained from the /proc/net files that lsof examines. Masatake YAMATO <yamato@redhat.com> developed the kernel patch to getxattr() and supplied the lsof patch.
2013-05-31Bump all packages for perl-5.18, thatwiz1-2/+2
a) refer 'perl' in their Makefile, or b) have a directory name of p5-*, or c) have any dependency on any p5-* package Like last time, where this caused no complaints.
2013-04-20Fix broken build on netbsd-5.dholland2-1/+19
2013-01-12Teach this about NetBSD 5.1, 5.2, 6.0, and 6.99 to silence useless builddholland2-13/+23
warnings.
2012-10-23Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.asau1-3/+1
2012-10-03Bump all packages that use perl, or depend on a p5-* package, orwiz1-2/+2
are called p5-*. I hope that's all of them.