<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pkgsrc/sysutils/lsof/patches/patch-ah, branch pkgsrc_2016Q4</title>
<subtitle>[no description]</subtitle>
<id>https://git.osdyson.ru/mirror/pkgsrc/atom?h=pkgsrc_2016Q4</id>
<link rel='self' href='https://git.osdyson.ru/mirror/pkgsrc/atom?h=pkgsrc_2016Q4'/>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/'/>
<updated>2011-03-21T00:22:02Z</updated>
<entry>
<title>When we moved from fd_ofiles to a struct fdtab, the fd_ofiles became</title>
<updated>2011-03-21T00:22:02Z</updated>
<author>
<name>jym</name>
<email>jym</email>
</author>
<published>2011-03-21T00:22:02Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=d7721e3062266684acca62161e06390c53a00e00'/>
<id>urn:sha1:d7721e3062266684acca62161e06390c53a00e00</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Make this build again on netbsd-current.  Bump PKGREVISION to 5.</title>
<updated>2009-08-11T20:53:06Z</updated>
<author>
<name>apb</name>
<email>apb</email>
</author>
<published>2009-08-11T20:53:06Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=dd2989dc3cf86f3da210867eecfe59eacec70a37'/>
<id>urn:sha1:dd2989dc3cf86f3da210867eecfe59eacec70a37</id>
<content type='text'>
</content>
</entry>
<entry>
<title>make this work again.</title>
<updated>2008-05-17T23:53:29Z</updated>
<author>
<name>christos</name>
<email>christos</email>
</author>
<published>2008-05-17T23:53:29Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=ab6af6d875a1d91885e59f6a83e44434c0bc8e25'/>
<id>urn:sha1:ab6af6d875a1d91885e59f6a83e44434c0bc8e25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Upgrade to lsof version 4.74, thereby getting rid of most of the</title>
<updated>2005-01-17T14:54:01Z</updated>
<author>
<name>atatat</name>
<email>atatat</email>
</author>
<published>2005-01-17T14:54:01Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=71cc2b570b3019d5efa492c7b832ee8bd3005fa4'/>
<id>urn:sha1:71cc2b570b3019d5efa492c7b832ee8bd3005fa4</id>
<content type='text'>
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 &lt;atatat@atatdot.net&gt;.
                ...
                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.)
                ...
</content>
</entry>
<entry>
<title>Tweak the sys/bufq.h support (it disappeared again), enhance the</title>
<updated>2004-11-28T22:39:07Z</updated>
<author>
<name>atatat</name>
<email>atatat</email>
</author>
<published>2004-11-28T22:39:07Z</published>
<link rel='alternate' type='text/html' href='https://git.osdyson.ru/mirror/pkgsrc/commit/?id=b522dd5ad290f4c8e60e16fbdaecfb6055c366fa'/>
<id>urn:sha1:b522dd5ad290f4c8e60e16fbdaecfb6055c366fa</id>
<content type='text'>
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.
</content>
</entry>
</feed>
