head 1.29; access; symbols pkgsrc-2026Q1:1.29.0.32 pkgsrc-2026Q1-base:1.29 pkgsrc-2025Q4:1.29.0.30 pkgsrc-2025Q4-base:1.29 pkgsrc-2025Q3:1.29.0.28 pkgsrc-2025Q3-base:1.29 pkgsrc-2025Q2:1.29.0.26 pkgsrc-2025Q2-base:1.29 pkgsrc-2025Q1:1.29.0.24 pkgsrc-2025Q1-base:1.29 pkgsrc-2024Q4:1.29.0.22 pkgsrc-2024Q4-base:1.29 pkgsrc-2024Q3:1.29.0.20 pkgsrc-2024Q3-base:1.29 pkgsrc-2024Q2:1.29.0.18 pkgsrc-2024Q2-base:1.29 pkgsrc-2024Q1:1.29.0.16 pkgsrc-2024Q1-base:1.29 pkgsrc-2023Q4:1.29.0.14 pkgsrc-2023Q4-base:1.29 pkgsrc-2023Q3:1.29.0.12 pkgsrc-2023Q3-base:1.29 pkgsrc-2023Q2:1.29.0.10 pkgsrc-2023Q2-base:1.29 pkgsrc-2023Q1:1.29.0.8 pkgsrc-2023Q1-base:1.29 pkgsrc-2022Q4:1.29.0.6 pkgsrc-2022Q4-base:1.29 pkgsrc-2022Q3:1.29.0.4 pkgsrc-2022Q3-base:1.29 pkgsrc-2022Q2:1.29.0.2 pkgsrc-2022Q2-base:1.29 pkgsrc-2022Q1:1.28.0.96 pkgsrc-2022Q1-base:1.28 pkgsrc-2021Q4:1.28.0.94 pkgsrc-2021Q4-base:1.28 pkgsrc-2021Q3:1.28.0.92 pkgsrc-2021Q3-base:1.28 pkgsrc-2021Q2:1.28.0.90 pkgsrc-2021Q2-base:1.28 pkgsrc-2021Q1:1.28.0.88 pkgsrc-2021Q1-base:1.28 pkgsrc-2020Q4:1.28.0.86 pkgsrc-2020Q4-base:1.28 pkgsrc-2020Q3:1.28.0.84 pkgsrc-2020Q3-base:1.28 pkgsrc-2020Q2:1.28.0.80 pkgsrc-2020Q2-base:1.28 pkgsrc-2020Q1:1.28.0.60 pkgsrc-2020Q1-base:1.28 pkgsrc-2019Q4:1.28.0.82 pkgsrc-2019Q4-base:1.28 pkgsrc-2019Q3:1.28.0.78 pkgsrc-2019Q3-base:1.28 pkgsrc-2019Q2:1.28.0.76 pkgsrc-2019Q2-base:1.28 pkgsrc-2019Q1:1.28.0.74 pkgsrc-2019Q1-base:1.28 pkgsrc-2018Q4:1.28.0.72 pkgsrc-2018Q4-base:1.28 pkgsrc-2018Q3:1.28.0.70 pkgsrc-2018Q3-base:1.28 pkgsrc-2018Q2:1.28.0.68 pkgsrc-2018Q2-base:1.28 pkgsrc-2018Q1:1.28.0.66 pkgsrc-2018Q1-base:1.28 pkgsrc-2017Q4:1.28.0.64 pkgsrc-2017Q4-base:1.28 pkgsrc-2017Q3:1.28.0.62 pkgsrc-2017Q3-base:1.28 pkgsrc-2017Q2:1.28.0.58 pkgsrc-2017Q2-base:1.28 pkgsrc-2017Q1:1.28.0.56 pkgsrc-2017Q1-base:1.28 pkgsrc-2016Q4:1.28.0.54 pkgsrc-2016Q4-base:1.28 pkgsrc-2016Q3:1.28.0.52 pkgsrc-2016Q3-base:1.28 pkgsrc-2016Q2:1.28.0.50 pkgsrc-2016Q2-base:1.28 pkgsrc-2016Q1:1.28.0.48 pkgsrc-2016Q1-base:1.28 pkgsrc-2015Q4:1.28.0.46 pkgsrc-2015Q4-base:1.28 pkgsrc-2015Q3:1.28.0.44 pkgsrc-2015Q3-base:1.28 pkgsrc-2015Q2:1.28.0.42 pkgsrc-2015Q2-base:1.28 pkgsrc-2015Q1:1.28.0.40 pkgsrc-2015Q1-base:1.28 pkgsrc-2014Q4:1.28.0.38 pkgsrc-2014Q4-base:1.28 pkgsrc-2014Q3:1.28.0.36 pkgsrc-2014Q3-base:1.28 pkgsrc-2014Q2:1.28.0.34 pkgsrc-2014Q2-base:1.28 pkgsrc-2014Q1:1.28.0.32 pkgsrc-2014Q1-base:1.28 pkgsrc-2013Q4:1.28.0.30 pkgsrc-2013Q4-base:1.28 pkgsrc-2013Q3:1.28.0.28 pkgsrc-2013Q3-base:1.28 pkgsrc-2013Q2:1.28.0.26 pkgsrc-2013Q2-base:1.28 pkgsrc-2013Q1:1.28.0.24 pkgsrc-2013Q1-base:1.28 pkgsrc-2012Q4:1.28.0.22 pkgsrc-2012Q4-base:1.28 pkgsrc-2012Q3:1.28.0.20 pkgsrc-2012Q3-base:1.28 pkgsrc-2012Q2:1.28.0.18 pkgsrc-2012Q2-base:1.28 pkgsrc-2012Q1:1.28.0.16 pkgsrc-2012Q1-base:1.28 pkgsrc-2011Q4:1.28.0.14 pkgsrc-2011Q4-base:1.28 pkgsrc-2011Q3:1.28.0.12 pkgsrc-2011Q3-base:1.28 pkgsrc-2011Q2:1.28.0.10 pkgsrc-2011Q2-base:1.28 pkgsrc-2011Q1:1.28.0.8 pkgsrc-2011Q1-base:1.28 pkgsrc-2010Q4:1.28.0.6 pkgsrc-2010Q4-base:1.28 pkgsrc-2010Q3:1.28.0.4 pkgsrc-2010Q3-base:1.28 pkgsrc-2010Q2:1.28.0.2 pkgsrc-2010Q2-base:1.28 pkgsrc-2010Q1:1.27.0.20 pkgsrc-2010Q1-base:1.27 pkgsrc-2009Q4:1.27.0.18 pkgsrc-2009Q4-base:1.27 pkgsrc-2009Q3:1.27.0.16 pkgsrc-2009Q3-base:1.27 pkgsrc-2009Q2:1.27.0.14 pkgsrc-2009Q2-base:1.27 pkgsrc-2009Q1:1.27.0.12 pkgsrc-2009Q1-base:1.27 pkgsrc-2008Q4:1.27.0.10 pkgsrc-2008Q4-base:1.27 pkgsrc-2008Q3:1.27.0.8 pkgsrc-2008Q3-base:1.27 cube-native-xorg:1.27.0.6 cube-native-xorg-base:1.27 pkgsrc-2008Q2:1.27.0.4 pkgsrc-2008Q2-base:1.27 cwrapper:1.27.0.2 pkgsrc-2008Q1:1.26.0.6 pkgsrc-2008Q1-base:1.26 pkgsrc-2007Q4:1.26.0.4 pkgsrc-2007Q4-base:1.26 pkgsrc-2007Q3:1.26.0.2 pkgsrc-2007Q3-base:1.26 pkgsrc-2007Q2:1.25.0.20 pkgsrc-2007Q2-base:1.25 pkgsrc-2007Q1:1.25.0.18 pkgsrc-2007Q1-base:1.25 pkgsrc-2006Q4:1.25.0.16 pkgsrc-2006Q4-base:1.25 pkgsrc-2006Q3:1.25.0.14 pkgsrc-2006Q3-base:1.25 pkgsrc-2006Q2:1.25.0.12 pkgsrc-2006Q2-base:1.25 pkgsrc-2006Q1:1.25.0.10 pkgsrc-2006Q1-base:1.25 pkgsrc-2005Q4:1.25.0.8 pkgsrc-2005Q4-base:1.25 pkgsrc-2005Q3:1.25.0.6 pkgsrc-2005Q3-base:1.25 pkgsrc-2005Q2:1.25.0.4 pkgsrc-2005Q2-base:1.25 pkgsrc-2005Q1:1.25.0.2 pkgsrc-2005Q1-base:1.25 pkgsrc-2004Q4:1.24.0.2 pkgsrc-2004Q4-base:1.24 pkgsrc-2004Q3:1.23.0.8 pkgsrc-2004Q3-base:1.23 pkgsrc-2004Q2:1.23.0.6 pkgsrc-2004Q2-base:1.23 pkgsrc-2004Q1:1.23.0.4 pkgsrc-2004Q1-base:1.23 pkgsrc-2003Q4:1.23.0.2 pkgsrc-2003Q4-base:1.23 netbsd-1-6-1:1.20.0.2 netbsd-1-6-1-base:1.20 netbsd-1-6:1.17.0.8 netbsd-1-6-RELEASE-base:1.17 pkgviews:1.17.0.4 pkgviews-base:1.17 buildlink2:1.17.0.2 buildlink2-base:1.17 netbsd-1-5-PATCH003:1.17 netbsd-1-5-PATCH001:1.17 comdex-fall-1999:1.11 netbsd-1-4-PATCH001:1.11 netbsd-1-4-RELEASE:1.7 netbsd-1-3-PATCH003:1.3 netbsd-1-3-PATCH002:1.1; locks; strict; comment @# @; 1.29 date 2022.05.25.09.33.37; author tnn; state Exp; branches; next 1.28; commitid JnTrWgbOon7C2qFD; 1.28 date 2010.04.30.06.53.07; author sbd; state Exp; branches; next 1.27; 1.27 date 2008.05.17.23.53.29; author christos; state Exp; branches; next 1.26; 1.26 date 2007.08.14.19.59.18; author veego; state Exp; branches; next 1.25; 1.25 date 2005.01.17.14.54.01; author atatat; state Exp; branches; next 1.24; 1.24 date 2004.11.28.22.39.07; author atatat; state Exp; branches; next 1.23; 1.23 date 2003.11.22.23.30.03; author atatat; state Exp; branches; next 1.22; 1.22 date 2003.11.22.23.19.47; author christos; state dead; branches; next 1.21; 1.21 date 2003.08.13.13.24.16; author atatat; state Exp; branches; next 1.20; 1.20 date 2002.12.22.20.04.31; author atatat; state Exp; branches; next 1.19; 1.19 date 2002.09.13.15.53.10; author tron; state Exp; branches; next 1.18; 1.18 date 2002.09.12.19.12.19; author tron; state Exp; branches; next 1.17; 1.17 date 2001.04.30.14.37.24; author agc; state Exp; branches; next 1.16; 1.16 date 2000.08.25.00.51.22; author wiz; state dead; branches; next 1.15; 1.15 date 2000.08.13.12.19.29; author kim; state Exp; branches; next 1.14; 1.14 date 2000.07.29.08.52.22; author jlam; state Exp; branches; next 1.13; 1.13 date 2000.02.22.23.29.23; author wiz; state dead; branches; next 1.12; 1.12 date 2000.02.19.03.58.25; author wiz; state Exp; branches; next 1.11; 1.11 date 99.07.07.18.13.56; author agc; state Exp; branches; next 1.10; 1.10 date 99.06.25.02.41.15; author hubertf; state dead; branches; next 1.9; 1.9 date 99.06.02.16.14.53; author christos; state Exp; branches; next 1.8; 1.8 date 99.05.05.17.32.45; author bad; state Exp; branches; next 1.7; 1.7 date 99.04.21.10.40.41; author agc; state Exp; branches; next 1.6; 1.6 date 99.03.28.17.29.53; author christos; state Exp; branches; next 1.5; 1.5 date 99.02.17.05.34.33; author erh; state Exp; branches; next 1.4; 1.4 date 98.09.28.10.57.39; author frueauf; state Exp; branches; next 1.3; 1.3 date 98.08.07.11.14.05; author agc; state Exp; branches; next 1.2; 1.2 date 98.06.11.16.25.32; author frueauf; state Exp; branches; next 1.1; 1.1 date 98.04.02.09.35.39; author frueauf; state Exp; branches; next ; desc @@ 1.29 log @lsof: support kmem grovelling of current-era NetBSD rbtree kernel namecache @ text @$NetBSD: patch-aa,v 1.28 2010/04/30 06:53:07 sbd Exp $ --- dialects/n+obsd/machine.h.orig 2010-07-29 16:02:55.000000000 +0000 +++ dialects/n+obsd/machine.h @@@@ -41,6 +41,10 @@@@ #include #include +#include +#if __NetBSD_Version__ >= 499006200 +#define HASCWDINFO +#endif /* @@@@ -577,7 +581,9 @@@@ /* #define USE_LIB_READMNT 1 rmnt.c */ /* #define USE_LIB_REGEX 1 regex.c */ -# if (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1002000) +#if (defined(NETBSDV) && NETBSDV>=9099000) +#define USE_LIB_RNMT 1 /* rnmt.c */ +# elif (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1002000) #define USE_LIB_RNMH 1 /* rnmh.c */ # else /* (defined(OPENBSDV) && OPENBSDV<2010) && (defined(NETBSDV) && NETBSDV<1002000) */ #define USE_LIB_RNAM 1 /* rnam.c */ @ 1.28 log @Move lsof from using the LSOF_MORE_SECURE and LSOF_LESS_SECURE_SOCKETS to using pkg options lsof-more-secure and lsof-less-secure-sockets. Also change the way the option are applied, the same way that the Customize script does and it works on all supported dialects. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.27 2008/05/17 23:53:29 christos Exp $ d3 2 a4 2 --- dialects/n+obsd/machine.h.orig 2006-03-28 16:54:17.000000000 -0500 +++ dialects/n+obsd/machine.h 2008-05-17 18:53:29.000000000 -0400 d16 11 @ 1.27 log @make this work again. @ text @d1 1 a1 6 $NetBSD: patch-aa,v 1.26 2007/08/14 19:59:18 veego Exp $ If LSOF_MORE_SECURE is non-zero, compile lsof with security, and only let unprivileged (non-root) users view their own open files. Set LSOF_LESS_SECURE_SOCKETS to non-zero in order to allow non-root users to see open sockets, even when LSOF_MORE_SECURE is set. a15 22 @@@@ -410,7 +414,9 @@@@ * (the one that its user logged on with) of the lsof process. */ -/* #define HASSECURITY 1 */ +#if LSOF_MORE_SECURE +#define HASSECURITY 1 +#endif /* @@@@ -419,7 +425,9 @@@@ * listing is selected by the "-i" option. */ -/* #define HASNOSOCKSECURITY 1 */ +#if LSOF_LESS_SECURE_SOCKETS +#define HASNOSOCKSECURITY 1 +#endif /* @ 1.26 log @- Don't hardcode the MFSNAMELEN length, inspired by commits from Christos (patch-ae and patch-af). Fix PR 36680 - Define NETBSD_SYS in the pkgsrc Makefile so it works if NETBSDSRCDIR is not pointing to a default location and thus some featues, like ptyfs support were disabled - Update the line numbers in patch-aa - Add tmpfs support (patch-ad, patch-af and patch-ag) - Update the NetBSD versions in Configure otherwise NETBSDV would fall back to 1006000 and so at least one feature was not found, the PFSfd procfs support (patch-ag) - Bump pkg revision for new features (normaly I wouldn't have bumped the version if it were only to fix a -current compile, because the version also includes the kernel version) @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.25 2005/01/17 14:54:01 atatat Exp $ d8 14 a21 3 --- dialects/n+obsd/machine.h.orig 2006-03-28 23:54:17.000000000 +0200 +++ dialects/n+obsd/machine.h 2007-08-11 18:01:56.000000000 +0200 @@@@ -410,7 +410,9 @@@@ d32 1 a32 1 @@@@ -419,7 +421,9 @@@@ @ 1.25 log @Upgrade to lsof version 4.74, thereby getting rid of most of the 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 . ... 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.) ... @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.24 2004/11/28 22:39:07 atatat Exp $ d8 3 a10 3 --- dialects/n+obsd/machine.h.orig 2004-10-17 17:55:27.000000000 -0400 +++ dialects/n+obsd/machine.h @@@@ -383,7 +383,9 @@@@ d21 1 a21 1 @@@@ -392,7 +394,9 @@@@ @ 1.24 log @Tweak the sys/bufq.h support (it disappeared again), enhance the 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. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.23 2003/11/22 23:30:03 atatat Exp $ a7 5 Also, incorporate a patch from the author that widens the NETBSDV definition to account for new current versioning system, properly handles the sys/bufq.h mess, adds a bit more to procfs support, and adds ptyfs support. a31 27 @@@@ -407,9 +411,9 @@@@ #define HASSETLOCALE 1 -# if defined(NETBSDV) && NETBSDV>=1060 +# if defined(NETBSDV) && NETBSDV>=1006000 #define HASWIDECHAR 1 -# endif /* defined(NETBSDV) && NETBSDV>=1060*/ +# endif /* defined(NETBSDV) && NETBSDV>=1006000 */ /* #define WIDECHARINCL */ @@@@ -529,11 +533,11 @@@@ /* #define USE_LIB_READMNT 1 rmnt.c */ /* #define USE_LIB_REGEX 1 regex.c */ -# if (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1020) +# if (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1002000) #define USE_LIB_RNMH 1 /* rnmh.c */ -# else /* (defined(OPENBSDV) && OPENBSDV<2010) && (defined(NETBSDV) && NETBSDV<1020) */ +# else /* (defined(OPENBSDV) && OPENBSDV<2010) && (defined(NETBSDV) && NETBSDV<1002000) */ #define USE_LIB_RNAM 1 /* rnam.c */ -# endif /* (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1020) */ +# endif /* (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1002000) */ /* #define USE_LIB_RNCH 1 rnch.c */ /* #define USE_LIB_SNPF 1 snpf.c */ @ 1.23 log @Bring back patch-aa -- it's for pkgsrc, not a bugfix. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.20 2002/12/22 20:04:31 atatat Exp $ d8 6 a13 1 --- dialects/n+obsd/machine.h.orig Tue Dec 3 13:23:54 2002 d15 1 a15 1 @@@@ -371,7 +371,9 @@@@ d26 1 a26 1 @@@@ -380,7 +382,9 @@@@ d37 27 @ 1.22 log @4.69 is out, 4.68 is gone. Approved by agc. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.21 2003/08/13 13:24:16 atatat Exp $ a7 2 Patch for vnode/DNLC interface change courtesy of lsof maintainer. a9 17 @@@@ -214,16 +214,12 @@@@ * that lsof can search. A value of 1 directs printname() to prefix the * cache value with the file system directory name; 2, avoid the prefix. * - * HASNCAPID is defined for those dialects with a searchable kernel name - * cache whose cache and vnodes are linked by a capability ID. - * * NCACHELDPFX is a set of C commands to execute before calling ncache_load(). * * NCACHELDSFX is a set of C commands to execute after calling ncache_load(). */ #define HASNCACHE 1 -#define HASNCAPID 1 /* #define NCACHELDPFX ??? */ /* #define NCACHELDSFX ??? */ a31 9 @@@@ -497,7 +493,7 @@@@ # if (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1020) #define USE_LIB_RNMH 1 /* rnmh.c */ -# else /* (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1020) */ +# else /* (defined(OPENBSDV) && OPENBSDV<2010) && (defined(NETBSDV) && NETBSDV<1020) */ #define USE_LIB_RNAM 1 /* rnam.c */ # endif /* (defined(OPENBSDV) && OPENBSDV>=2010) || (defined(NETBSDV) && NETBSDV>=1020) */ @ 1.21 log @A patch (courtesy of the lsof maintainer) to make lsof build again on NetBSD-current, where the structure of the vnode has been altered. This patch will, as usual, be obsoleted by the next lsof release. PKGREVISION bumped accordingly. Install the lsof.8 man page in man8 instead of installing the preformatted copy in man1 (doing so used to slide by, by new groff really doesn't like formatting preformatted man pages, and besides, it was in the wrong place). Since the only thing left untouched was the DESCR file, I also added mention of kqueues as something lsof might note, meaning that this patch touches every file in the pkg. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.20 2002/12/22 20:04:31 atatat Exp $ @ 1.20 log @Upgrade lsof pkg to 4.66. Notable changes are: ... Implemented the HASNOSOCKSECURITY compile-time option. When it and HASSECURITY are defined, lsof will be built to list only the user's open files, but will also list anyone else's open socket files, provided the "-i" option selects their listing. Updated the Customize script to ask about setting HASNOSOCKSECURITY. Left it undefined in all dialect machine.h header files. This change was requested by Kenneth Stailey for use with ntop. ... Improved lsof help (-h) and version (-v) information reporting. ... In order to the provide a simple pkgsrc hook for the new HASNOSOCKSECURITY option, we provide the LSOF_LESS_SECURE_SOCKETS setting (as a complement to the LSOF_MORE_SECURE option we already have). @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.19 2002/09/13 15:53:10 tron Exp $ d8 2 d12 17 d51 9 @ 1.19 log @Restore "patch-aa" which got clobbered during the last commit by mistake. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.17 2001/04/30 14:37:24 agc Exp $ d4 3 a6 1 only let unprivileged (non-root) users view their own open files d8 3 a10 3 --- dialects/n+obsd/machine.h 2001/04/30 09:23:38 1.1 +++ dialects/n+obsd/machine.h 2001/04/30 10:06:24 @@@@ -373,7 +373,9 @@@@ d17 11 @ 1.18 log @Fix build problem under NetBSD-current and combine two patches which modify the same file. @ text @d1 1 a1 1 $NetBSD$ d3 13 a15 5 --- dialects/n+obsd/dlsof.h.orig Mon Jun 17 03:44:15 2002 +++ dialects/n+obsd/dlsof.h Thu Sep 12 21:08:10 2002 @@@@ -46,6 +46,10 @@@@ #include #include a16 8 +#define _KERNEL +#include +#undef _KERNEL + # if defined(HASGETBOOTFILE) #include # endif /* defined(HASGETBOOTFILE) */ @@@@ -209,9 +213,9 @@@@ d18 1 a18 10 # if defined(HASNULLFS) #define _KERNEL -# if defined(NETBSDV) && NETBSDV>=1060 +# if defined(NETBSDV) && NETBSDV>=1050 #include "netexport.h" -# endif /* defined(NETBSDV) && NETBSDV>=1060 */ +# endif /* defined(NETBSDV) && NETBSDV>=1050 */ #include #undef _KERNEL # endif /* defined(HASNULLFS) */ @ 1.17 log @Add a mk.conf variable LSOF_MORE_SECURE, which, if set to 1, will mean that non-privileged users can only view their own open files. Fixes PR 12741, from Anne Bennett (anne@@alcor.concordia.ca) @ text @d3 5 a7 8 If LSOF_MORE_SECURE is non-zero, compile lsof with security, and only let unprivileged (non-root) users view their own open files --- dialects/n+obsd/machine.h 2001/04/30 09:23:38 1.1 +++ dialects/n+obsd/machine.h 2001/04/30 10:06:24 @@@@ -373,7 +373,9 @@@@ * (the one that its user logged on with) of the lsof process. */ d9 8 a16 4 -/* #define HASSECURITY 1 */ +#if LSOF_MORE_SECURE +#define HASSECURITY 1 +#endif d18 10 a27 2 /* @ 1.16 log @Update to 4.51 -- integrates patch. Other relevant changes: Changes scripts/ to make Perl 5 the standard; corrects a bug in the reporting of a PTX fattach()'d target address; encourages NetBSD and OpenBSD lsof to use /usr/include/uvm when it's available; adds snprintf() support, including a private version for dialects without one; fixes a BSDI, DEC/OSF1, Digital UNIX, FreeBSD, NetBSD, OpenBSD, and Tru64 UNIX repeat-mode memory leak. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.15 2000/08/13 12:19:29 kim Exp $ d3 7 a9 17 --- dialects/n+obsd/dlsof.h.orig Thu Jun 22 15:55:29 2000 +++ dialects/n+obsd/dlsof.h Sun Aug 13 15:13:46 2000 @@@@ -47,6 +47,7 @@@@ #include #include #include +#include # if defined(NETBSDV) #include @@@@ -90,14 +91,12 @@@@ #include #include -# if defined(UVM) /* * Avoid conflicts with definitions in . d12 3 a14 12 #undef FALSE #undef TRUE -# endif /* defined(UVM) */ #include @@@@ -183,6 +182,9 @@@@ #define _KERNEL #include #include +#if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 105030000) +struct vop_advlock_args { int dummy; }; /* to pacify lf_advlock() prototype */ a15 6 #include #undef KERNEL #undef _KERNEL @@@@ -197,10 +199,14 @@@@ #include # endif /* defined(UVM) */ a16 8 +#if defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 105020000) +#include +#else #include #include #include #include +#endif d18 1 a18 2 # if defined(OPENBSDV) # if OPENBSDV==2030 && defined(__sparc__) @ 1.15 log @When __NetBSD_Version__ is not defined we need to assume the old stuff (vm) rather than the new stuff (uvm). @ text @d1 1 a1 1 $NetBSD$ @ 1.14 log @Make this compile on -less systems. Should address pkg/10706 by Wolfgang Rupprech . @ text @d3 2 a4 2 --- dialects/n+obsd/dlsof.h.orig Thu Jun 22 08:55:29 2000 +++ dialects/n+obsd/dlsof.h Sat Jul 29 04:45:23 2000 d13 16 a28 1 @@@@ -183,6 +184,9 @@@@ d38 1 a38 1 @@@@ -197,10 +201,14 @@@@ d42 3 a44 1 +#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 105020000) a48 2 +#else +#include @ 1.13 log @update to 4.49C. Patch incorporated; other changes include an AIX fix, better Solaris 7/8 autoconfiguration and minor code cleanup. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.12 2000/02/19 03:58:25 wiz Exp $ d3 7 a9 4 --- ./dialects/n+obsd/dlsof.h.orig Tue Feb 1 15:31:27 2000 +++ ./dialects/n+obsd/dlsof.h Sat Feb 19 04:13:09 2000 @@@@ -76,7 +76,7 @@@@ #include d11 15 a25 5 # if defined(HASIPv6) && defined(NETBSDV) && !defined(HASINRIAIPv6) -#include +#include #include # endif /* defined(HASIPv6) && defined(NETBSDV) && !defined(HASINRIAIPv6) */ d27 11 @ 1.12 log @Updated to lsof 4.49B pre-release. Changes since 4.46 are mainly bugfixes and better IPv6-support, as well as 1.4-current support. @ text @d1 1 a1 1 $NetBSD$ @ 1.11 log @Make this package work on Solaris. Again. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.9 1999/06/02 16:14:53 christos Exp $ d3 11 a13 13 On Solaris, don't try to use ranlib... --- Configure.orig Tue May 11 07:40:20 1999 +++ Configure Mon May 3 11:53:20 1999 @@@@ -3037,7 +3046,7 @@@@ then echo "AR= $LSOF_AR" >> ${LSOF_LIB}/$LSOF_LIBMKF fi # } - if test "X$LSOF_RANLIB" != "X" # { + if test "X$LSOF_TGT" = "Xsolaris" -o "X$LSOF_RANLIB" != "X" # { then echo "RANLIB= $LSOF_RANLIB" >> ${LSOF_LIB}/$LSOF_LIBMKF fi # } @ 1.10 log @Update to V4.44. Changes: Corrects SunOS 4.1.x HSFS and segmentation fault problems; improves handling of UNIX PCB addresses in the /proc-based Linux lsof; corrects PPID and PGRP output ordering conflict; enhanced some library modules so more dialect versions could use them; adds raw socket support for /proc-based Linux lsof; adds support for UnixWare 7.1; made NetBSD 1.4C updates; makes minor adjustment for latest Tru64 UNIX 5.0 Beta release. @ text @d3 2 a6 25 @@@@ -1575,6 +1575,9 @@@@ 1.4*) LSOF_VERS="1030" ;; + 1.4*) + LSOF_VERS="1040" + ;; *) echo Unknown NetBSD release: `uname -r` echo Assuming NetBSD 1.0 @@@@ -1668,7 +1671,13 @@@@ if test $? -eq 0 # { then NETBSD_UVM="Y" - fi # } + else + NETBSD_VM_FAULT=`nm /netbsd | grep 'vm_fault$' | cut -d " " -f 3` + case $NETBSD_VM_FAULT in # { + *uvm_fault) + NETBSD_UVM="Y";; + esac # } + fi # } fi # } if test "X$NETBSD_UVM" = "X" # { then @ 1.9 log @Update to 4.43_W @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.8 1999/05/05 17:32:45 bad Exp $ @ 1.8 log @From ks@@ub.uni-mainz.de: recognise 1.4ish systems. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 1999/04/21 10:40:41 agc Exp $ d3 4 a6 4 --- Configure.orig Sat Feb 27 16:40:33 1999 +++ Configure Wed May 5 18:46:07 1999 @@@@ -1482,6 +1482,9 @@@@ 1.3*) d15 1 a15 10 @@@@ -1493,7 +1496,7 @@@@ # Test for legal NetBSD version. case $LSOF_VERS in # { - 1000|1010|1020|1030) + 1000|1010|1020|1030|1040) ;; *) echo "Unsupported NetBSD version: $LSOF_VERS" @@@@ -1575,7 +1578,13 @@@@ d28 3 a30 3 fi # } rm -rf dialects/n+obsd/uvm_include @@@@ -2921,7 +2930,7 @@@@ @ 1.7 log @Fix the LSOF_RANLIB target under Solaris in the generated lib Makefile. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.6 1999/03/28 17:29:53 christos Exp $ d3 22 a24 3 --- Configure.orig Sat Feb 27 10:40:33 1999 +++ Configure Sun Mar 28 11:53:00 1999 @@@@ -1575,7 +1575,13 @@@@ d39 1 a39 1 @@@@ -2921,7 +2928,7 @@@@ @ 1.6 log @Update to lsof_4.41_W @ text @d1 1 a1 1 $NetBSD$ d20 9 @ 1.5 log @Update lsof to 4.40. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 1998/09/28 10:57:39 frueauf Exp $ d3 4 a6 9 --- Configure.orig Tue Sep 15 02:56:33 1998 +++ Configure Thu Sep 17 15:47:27 1998 @@@@ -1463,7 +1463,7 @@@@ then if test -r /etc/mk.conf # { then - grep -q "^UVM[ ]*=" /etc/mk.conf + grep -q "^UVM[ ]*[\?|\+]*=" /etc/mk.conf if test $? -eq 0 # { d9 11 @ 1.4 log @Update lsof to 4.37. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.3 1998/08/07 11:14:05 agc Exp $ d5 1 a5 1 @@@@ -1400,7 +1400,7 @@@@ @ 1.3 log @Add NetBSD RCS Ids. @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- Configure.orig Fri May 22 20:58:12 1998 +++ Configure Thu Jun 11 17:15:28 1998 @@@@ -1527,7 +1527,7 @@@@ d7 1 a7 1 if test -r /etc/mk.conf d11 1 a11 1 if test $? -eq 0 @ 1.2 log @Update to lsof-4.33_W. @ text @d1 2 @ 1.1 log @Add support for UVM. @ text @d1 11 a11 14 --- dialects/n+obsd/Makefile.orig Tue Feb 17 01:51:59 1998 +++ dialects/n+obsd/Makefile Thu Apr 2 11:20:07 1998 @@@@ -12,7 +12,11 @@@@ L=/usr/include/local P= +.if ${UVM} != "" +DEBUG= -O -DUVM +.else DEBUG= -O +.endif CDEF= CDEFS= ${CDEF} ${CFGF} @