Lsof (LiSt Open Files) lists information about files that are open by the
running processes. An open file may be a regular file, a directory, a block
special file, a character special file, an executing text reference, a library,
a stream or a network file (Internet socket, NFS file or Unix domain socket).
See also fstat(1) in the base system.
===> The following configuration options are available for lsof-4.99.5,8:
NOSOCKSECURITY=off: Non-root users can only list their own files except sockets (Implies SECURITY)
SECURITY=off: Non-root users can only list their own files
===> Use 'make config' to modify these settings
NOTE: Due to the way the FreeBSD build clusters make packages,
you may see a warning similar to the following:
lsof: WARNING: compiled for FreeBSD release 11.1-RELEASE-p6; this is 11.1-RELEASE-p4.
This is because the poudriere jails that build the packages don't have the
corresponding kernel installed, so they don't know that the kernel version is different.
This warning can be ignored if you are using a system that is updated via freebsd-update
and are using pre-built packages.
sysutils/lsof: update to 4.99.1
Fix compilation error when HASIPv6 is not defined. (@chenrui333)
Add configure option --disable-liblsof to disable installation
of liblsof. (@subnut, #300)
[freebsd] fix segfault from fs info (FreeBSD bug 267760)
PR: 267760
Reported by: Ronald Klop
sysutils/lsof: Upgrade to 4.97.0
ChangeLog:
[decof/du/tru64] Remove support because the os is no longer updated for more
than 10 years
[openstep/nextstep] Remove support because the os is no longer updated for more
than 20 years
Add experimental build system based on Autotools (#270)
Fixed LTsock testing on darwin (#272)
Remove NEW and OLD folders (#6)
Fix FreeBSD testcases (#271)
Rewrite documentation and publish at https://lsof.readthedocs.io/
sysutils/lsof: update to 4.96.0-freebsd
ChangeLog:
[FreeBSD] configure: suggest variable to set if FreeBSD
sys not
found
submitted by @emaste
Updated 00FAQ with lookup to open files via mountpoint
Provided by Jacob Chapman in #240
[FreeBSD] modernize API usage and remove legacy FreeBSD
releases
Contributor DamjanJovanovic (#184) Ed Maste (#250, #251,
Warner Losh (#253)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
sysutils/lsof: net/raw_cb.h no longer exists
As of f63cb32c1988561136fabdcc54d16cd200b666d9 (in src) the net/raw_cb.h
header no longer exists. It was removed as part of the retirement of
4.4BSD raw sockets.
Happily this header is not actually required for lsof, so we can just
not include it to fix the ports build.
Reviewed by: emaste, ler
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D36240
all: drop support for EOL FreeBSD 12.2
- Mk/bsd.port.mk: bump minimal FreeBSD version to 12.3,
update an example
- sysutils/lsof: drop support for ancient FreeBSD releases.
- multimedia/ustreamer: remove inline patch for 12.2
- x11/wayland-logout: remove support for FreeBSD < 12.3
- sysutils/bhyve+: remove support for FreeBSD 12.2
- databases/clickhouse: remove support for FreeBSD 12.2
- databases/mariadb106-server: remove support for FreeBSD 12.2
- devel/cvsd: no need to test for FreeBSD >=5 anymore
- devel/imake: no need to support a.out anymore
- japanese/kterm: no need to support FreeBSD <= 9
- math/igraph: remove support for FreeBSD 12.2
- net/onedrive: remove support for FreeBSD 12.2
- security/ipsec-tools: no need to test for FreeBSD >= 11
- emulators/rpcs3: Revert "emulators/rpcs3: unbreak on FreeBSD 12.2 after
49f593b2f77f"
Reviewed by: brnrd, fluffy, jbeich, ler, yuri, x11 (zeising)
Approved by: portmgr (implicit)
Differential Revision: https://reviews.freebsd.org/D34523
sysutils/lsof: Update to 4.94
* Update to 4.94.
* Update or remove patches that are included in upstream.
* Fix build with Clang 11 without setting 'CFLAGS+=-fcommon' in Makefile.
* Use new pwddesc structure if applicable.
Change Log: https://github.com/lsof-org/lsof/releases/tag/4.94.0
Submitted by: Yasuhiro Kimura <yasu@utahime.org>
PR: 251096
MFH: 2021Q1
sysutils/lsof: Unbreak for 12.2-RELEASE and newer 13.0-CURRENT
The the order of fields in the namecache struct changed in stable/12
(r363891) and head (r367338); this definition is not public so lsof
has it's own copy that needs to be conditionally adjusted accordingly.
PR: 250916
Approved by: ler (maintainer)
sysutils/lsof: replace architecture check with compiler check
This issue happens only when GCC is in use, it doesn't happen with clang. Since
the package changes, bump PORTREVISION.
This also fixes build on e.g. mips64 stable/12.
MFH: 2020Q4 (fix build blanket)
sysutils/lsof: fix build on 12.2-RC2 on powerpc(64)
Link also to libzfs:
/usr/lib/libzpool.so: undefined reference to `get_system_hostid'
MFH: 2020Q4 (fix build blanket)
sysutils/lsof: Unbreak build with -fno-common
ld: error: duplicate symbol: Cfp
>>> defined at dmnt.c
>>> dmnt.o:(Cfp)
>>> defined at dnode.c
>>> dnode.o:(.bss+0x0)
ld: error: duplicate symbol: Cfp
>>> defined at dmnt.c
>>> dmnt.o:(Cfp)
>>> defined at dnode1.c
>>> dnode1.o:(.bss+0x0)
ld: error: duplicate symbol: Cfp
>>> defined at dmnt.c
>>> dmnt.o:(Cfp)
(Only the first 15 lines of the commit message are shown above )
sysutils/lsof: fix build following base r356337.
I took the patch from 243122 as it was more correct.
PR: 243122, 243083
Submitted by: cy, yasu@utahime.org
sysutils/lsof: unbreak after base r354895.
- fix vm_map related breakage
- remove #define/#undef _KERNEL for tmpfs (dougm had the header fixed)
patch courtesy of dougm@
PR: 242620
Reported by: ish@amail.plala.or.jp
Obtained from: dougm
sysutils/lsof: fix build on -CURRENT.
sys/_lock.h is no longer implicitly included in such a way that the #ifdef
_KERNEL #error in lockmgr.h is bypassed after r347984. Fix lsof to explicitly
include _lock.h with _KERNEL defined on 13.
Submitted by: cem
Reported by: pkg-fallout
Differential Revision: https://reviews.freebsd.org/D20341
sysutils/lsof: move to GitHub, update to 4.93.1
Changes since 4.92:
4.93.0 May 7, 2019
[freebsd] Made FreeBSD 13 adjustment.
[darwin] Fix a typo causing a build error.
Fix a potential memory leak.
[linux] use tirpc for rpc if libc doesn't provide rpc.h.
Fix a typo in man page.
[linux] fix memory leaks detected by valgrind about unix
endpoint information.
Update the description about -fg and -fG options on linux.
4.93.1 May 7, 2019
Fix a broken symbolic link.
The new features developed at lsof-org/lsof-linux repository is not
merged yet.
Mark some ports failing on power64. In cases where the error message
was a stub, provide a real one.
While here, pet portlint.
Approved by: portmgr (tier-2 blanket)
Reported by: swills
Fix build on FreeBSD 12, where structs inpcb and tcpcb are no longer exported
to userland, unless explicitly asked for.
Don't bump PORTREVISION, since this particular port needs to be recompiled
basicly anytime base is upgraded. It has too much knowledge about kernel
structures.
Official fix for the arm ARM_NARCH and ARM_NMMUS issue
(r431492)
Approved by: adamw (mentor)
Obtained from: Vic Abell (author)
MFH: 2017Q1 (blanket)
Differential Revision: https://reviews.freebsd.org/D9188
Fix sysutils/lsof on arm.
This fixes the case where ARM_NARCH and ARM_NMMUS are 0, since the lsof(1)
sources get hacky
access to kernel structures.
PR: 216065
Submitted by: samm os2 kiev ua
Approved by: adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D9176
Update MAINTAINER on my ports (and created by line) to my @FreeBSD.org email
Approved by: adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D9125
Update to 4.90G.
Includes:
- Change from using i_dev to using i_ump->um_dev
PR: 212901
Submitted by: Trond Endrestol
Approved by: maintainer (Larry Rosenman)
sysutils/lsof: 4.89E -> 4.90A
- head changed the system to require an opt_random.h header for
some of the _KERNEL compiled headers that sysutils/lsof uses.
- 4.90A fixes this, it also picks up the changes from the 4.89 FULL
RELEASE
PR: 202421
Submitted by: Larry Rosenman <ler@lerctr.org> (maintainer)