summaryrefslogtreecommitdiff
path: root/sysutils/lsof/patches/patch-ah
AgeCommit message (Collapse)AuthorFilesLines
2011-03-21When we moved from fd_ofiles to a struct fdtab, the fd_ofiles becamejym1-2/+2
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.
2009-08-11Make this build again on netbsd-current. Bump PKGREVISION to 5.apb1-17/+78
2008-05-17make this work again.christos1-0/+74
2005-01-17Upgrade to lsof version 4.74, thereby getting rid of most of theatatat1-45/+0
accumulated patches. Changes related to or affecting NetBSD (or pkgsrc) from the 00DIST file: 4.74 January 17, 2005 ... Updated lsof for NetBSD 2.99.10 and tested it on a system provided by Andrew Brown <atatat@atatdot.net>. ... Added BSDI, FreeBSD, NetBSD and OpenBSD support for the *effnlink member of the inode structure. This makes the lsof LTnlink test run faster on all modified dialects and correctly on OpenBSD. Added ptyfs support for NetBSD, using modifications provided by Andrew Brown. Changed the netbsd Configure stanza to look by default for system header files in both /usr/include and /usr/src. (The NETBSD_SYS environment variable can still be used to select an alternate for /usr/src.) ...
2004-11-28Tweak the sys/bufq.h support (it disappeared again), enhance theatatat1-0/+45
procfs support a little, incorporate the author's patches to deal with netbsd-current version numbers getting longer, and add ptyfs support. These patches are adapted from an interim release the author made and will appear in the next full release. PKGREVISION bumped to 1 for the ptyfs support.