head 1.7; access; symbols pkgsrc-2026Q1:1.7.0.82 pkgsrc-2026Q1-base:1.7 pkgsrc-2025Q4:1.7.0.80 pkgsrc-2025Q4-base:1.7 pkgsrc-2025Q3:1.7.0.78 pkgsrc-2025Q3-base:1.7 pkgsrc-2025Q2:1.7.0.76 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.74 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.72 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.70 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.68 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.66 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.64 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.62 pkgsrc-2023Q3-base:1.7 pkgsrc-2023Q2:1.7.0.60 pkgsrc-2023Q2-base:1.7 pkgsrc-2023Q1:1.7.0.58 pkgsrc-2023Q1-base:1.7 pkgsrc-2022Q4:1.7.0.56 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.54 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.52 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.50 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.48 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.46 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.44 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.42 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.40 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.38 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.34 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.14 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.36 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.32 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.30 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.28 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.26 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.7.0.24 pkgsrc-2018Q3-base:1.7 pkgsrc-2018Q2:1.7.0.22 pkgsrc-2018Q2-base:1.7 pkgsrc-2018Q1:1.7.0.20 pkgsrc-2018Q1-base:1.7 pkgsrc-2017Q4:1.7.0.18 pkgsrc-2017Q4-base:1.7 pkgsrc-2017Q3:1.7.0.16 pkgsrc-2017Q3-base:1.7 pkgsrc-2017Q2:1.7.0.12 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.10 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.7.0.8 pkgsrc-2016Q4-base:1.7 pkgsrc-2016Q3:1.7.0.6 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.4 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.2 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.6.0.28 pkgsrc-2015Q4-base:1.6 pkgsrc-2015Q3:1.6.0.26 pkgsrc-2015Q3-base:1.6 pkgsrc-2015Q2:1.6.0.24 pkgsrc-2015Q2-base:1.6 pkgsrc-2015Q1:1.6.0.22 pkgsrc-2015Q1-base:1.6 pkgsrc-2014Q4:1.6.0.20 pkgsrc-2014Q4-base:1.6 pkgsrc-2014Q3:1.6.0.18 pkgsrc-2014Q3-base:1.6 pkgsrc-2014Q2:1.6.0.16 pkgsrc-2014Q2-base:1.6 pkgsrc-2014Q1:1.6.0.14 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.12 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.10 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.8 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.6 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.4 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.2 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.5.0.80 pkgsrc-2012Q2-base:1.5 pkgsrc-2012Q1:1.5.0.78 pkgsrc-2012Q1-base:1.5 pkgsrc-2011Q4:1.5.0.76 pkgsrc-2011Q4-base:1.5 pkgsrc-2011Q3:1.5.0.74 pkgsrc-2011Q3-base:1.5 pkgsrc-2011Q2:1.5.0.72 pkgsrc-2011Q2-base:1.5 pkgsrc-2011Q1:1.5.0.70 pkgsrc-2011Q1-base:1.5 pkgsrc-2010Q4:1.5.0.68 pkgsrc-2010Q4-base:1.5 pkgsrc-2010Q3:1.5.0.66 pkgsrc-2010Q3-base:1.5 pkgsrc-2010Q2:1.5.0.64 pkgsrc-2010Q2-base:1.5 pkgsrc-2010Q1:1.5.0.62 pkgsrc-2010Q1-base:1.5 pkgsrc-2009Q4:1.5.0.60 pkgsrc-2009Q4-base:1.5 pkgsrc-2009Q3:1.5.0.58 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.5.0.56 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.54 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.52 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.50 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.48 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.46 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.44 pkgsrc-2008Q1:1.5.0.42 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.40 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.38 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.36 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.34 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.5.0.32 pkgsrc-2006Q4-base:1.5 pkgsrc-2006Q3:1.5.0.30 pkgsrc-2006Q3-base:1.5 pkgsrc-2006Q2:1.5.0.28 pkgsrc-2006Q2-base:1.5 pkgsrc-2006Q1:1.5.0.26 pkgsrc-2006Q1-base:1.5 pkgsrc-2005Q4:1.5.0.24 pkgsrc-2005Q4-base:1.5 pkgsrc-2005Q3:1.5.0.22 pkgsrc-2005Q3-base:1.5 pkgsrc-2005Q2:1.5.0.20 pkgsrc-2005Q2-base:1.5 pkgsrc-2005Q1:1.5.0.18 pkgsrc-2005Q1-base:1.5 pkgsrc-2004Q4:1.5.0.16 pkgsrc-2004Q4-base:1.5 pkgsrc-2004Q3:1.5.0.14 pkgsrc-2004Q3-base:1.5 pkgsrc-2004Q2:1.5.0.12 pkgsrc-2004Q2-base:1.5 pkgsrc-2004Q1:1.5.0.10 pkgsrc-2004Q1-base:1.5 pkgsrc-2003Q4:1.5.0.8 pkgsrc-2003Q4-base:1.5 netbsd-1-6-1:1.5.0.4 netbsd-1-6-1-base:1.5 netbsd-1-6:1.5.0.6 netbsd-1-6-RELEASE-base:1.5 pkgviews:1.5.0.2 pkgviews-base:1.5 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.4 netbsd-1-5-RELEASE:1.4 netbsd-1-4-PATCH003:1.4 netbsd-1-4-PATCH002:1.3 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.2 netbsd-1-4-RELEASE:1.2 netbsd-1-3-PATCH003:1.2; locks; strict; comment @# @; 1.7 date 2016.03.13.09.06.01; author dholland; state Exp; branches; next 1.6; commitid ho1Xi7N1LQMXEsYy; 1.6 date 2012.09.09.19.49.45; author dholland; state Exp; branches; next 1.5; 1.5 date 2002.06.28.08.42.35; author agc; state Exp; branches; next 1.4; 1.4 date 2000.07.13.11.09.18; author abs; state Exp; branches; next 1.3; 1.3 date 99.12.06.21.09.12; author abs; state Exp; branches; next 1.2; 1.2 date 98.08.07.11.10.48; author agc; state Exp; branches; next 1.1; 1.1 date 98.07.24.13.36.52; author agc; state Exp; branches; next ; desc @@ 1.7 log @Use standard headers. Fixes at least some LP64 bugs. Ride previous version bump. @ text @$NetBSD: patch-aa,v 1.6 2012/09/09 19:49:45 dholland Exp $ - Use standard headers. - Don't use curses internals. --- netconsole/build_display.c.orig 1994-11-29 20:41:06.000000000 +0000 +++ netconsole/build_display.c @@@@ -57,9 +57,10 @@@@ */ #include "netconsole.h" +#include -#define WFULL(w) (w->_cury == (w->_maxy - 1)) ? 1:0 +#define WFULL(w) (getcury(w) == (getmaxy(w) - 1)) ? 1:0 build_display () { @@@@ -229,8 +230,8 @@@@ display_screenful () "\n(DEBUG): frozen = %s, quiet = %s\n", frozen ? "YES" : "NO", quiet ? "YES" : "NO" ); wprintw(aw.wmsg, - "(DEBUG): Term= %s, LINES= %d, COLS= %d, Datadir= %s", ttytype, - LINES, COLS, datadir) ; /* ttytype in curses.h */ + "(DEBUG): LINES= %d, COLS= %d, Datadir= %s", + LINES, COLS, datadir) ; wclrtoeol(aw.wmsg); } @@@@ -238,8 +239,8 @@@@ display_screenful () * Am calling touchwin() since its foolproof (see discussion above) */ touchwin (aw.wmain); - y = aw.wprompt->_cury + aw.wprompt->_begy ; /* force cursor loc.. */ - x = aw.wprompt->_curx + aw.wprompt->_begx ; /* ..to prompt window */ + y = getcury(aw.wprompt) + getbegy(aw.wprompt); /* force cursor loc.. */ + x = getcurx(aw.wprompt) + getbegx(aw.wprompt); /* ..to prompt window */ wmove(aw.wmain, y, x); wrefresh (aw.wmain); /* Onto screen */ return (0) ; @ 1.6 log @Add some patch comments. @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.5 2002/06/28 08:42:35 agc Exp $ d3 2 a4 1 Don't use curses internals. d6 5 a10 3 --- netconsole/build_display.c.orig Thu Jul 13 11:13:37 2000 +++ netconsole/build_display.c Thu Jul 13 11:15:26 2000 @@@@ -59,7 +59,7 @@@@ d12 1 d20 1 a20 1 @@@@ -229,8 +229,8 @@@@ d31 1 a31 1 @@@@ -238,8 +238,8 @@@@ @ 1.5 log @Remove diagnostic ttytype from debug messages - native curses doesn't have the ttytype throw-back, and it's not exactly useful these days. @ text @d1 3 a3 1 $NetBSD: patch-aa,v 1.4 2000/07/13 11:09:18 abs Exp $ @ 1.4 log @Update to 4.3.1, plus fix replace access to curses with appropriate standard interfaces so we can compile netconsole on NetBSD-current again. On a lighter note - lose two previous patches that are now in the main dist. Release Notes nocol v4.3.1 (Mar 2000) Minor release to fix patches. 1. portmon.c » Missing close() left too many file descriptors » Now running check_resp() after receiving EOF from the remote host. Should fix problem of receiving data with no \n in entire data stream. 2. snmpgeneric » Allow specifying client port number (joe@@hole-in-the.net) » Sets MIBFILE_v2 variable also for the mib file 3. webnocol.cgi Small fix to prevent possible loop. 4. nocollib.pl Changed 'ps' to '/bin/ps' 5. hostmon-client Changed 'ps' to '/bin/ps' nocol v4.3 (Jan 2000) 1. Configure Added support for Rhapsody (jrowan@@mandli.com) and BSDI 4.0 Detect 'whoami' for Solaris 2. armon, nrmon Handle different levels for registered and unregistered routes. Removes unregistered route status before deleting all knowledge (frank@@ansto.gov.au) 3. bpmon Fixed bug in parsing of bootptest 4. bsdsignal.c Restores old sigusr1 (dbird@@varadm.com) 5. ciscomon Change in message for 'Inlet temperature' 6. cmu-snmp New CMU snmp library 7. etherload Changed includes to allows glibc and older libc in linux.c 8. genweb.pl Fixed Y2K issue; added additional sounds (jonz@@netrail.com) 9. hostmon Patches for using 'scp' in addition to rcp/telnet (frank@@ansto.gov.au). Changed regex for parsing of data lines. Now using split instead of regex for $thresindex{}. Put a '^' in all the regexs in the config file. Fixed bug with DFspace parsing. 10. hostmon-client Strip comments from mqueue output. Allow running a 'local' file if it exists (frank@@ansto.gov.au) $port shoud be set AFTER getservbyname(). Added support for qmail Detect ps flags 11. hostmon-clients/* Ignore NFS mounts. Look at NFS timeouts on Solaris. Run iostat with time interval, Pagein/pageout code in linux (-frank@@ansto.gov.au). Fixed pstat in hostmon.osf1 (durrell@@innocence.com) 12. keepalive_monitor Bug which kept old processes around (avoltmer@@replaytv.com) 13. logstats Added -r option (ornstedt@@sonera.se) 14. mknrmon Create config file for novell routes (frank@@ansto.gov.au) 15. modemmon Added conditionals to support use of 'finger' instead of 'telnet' 16. multiping Added -n option to not use DNS (nscd was slowing down multiping) 17. ndaemon Added new Tcl/Tk interface for X-windows (lwl@@godlike.com) 18. netconsole Added -T on command line (frank@@ansto.gov.au) Starts up without prompting if known good terminal type 19. noclogd Was creating error file in etcdir, changed to PIDDIR for consistency 20. nocol C library event_to_logstr() fixed (dbird@@varadm.net) 21. nocollib.pl Added return 1 at end of library. Fixed bug in detecting $PSCMD. Support for BSDI 4.0 socket structures in perl libraries. Now using send() and not syswrite(). Retry opening socket if send fails. 22 notifier.pl $repeat was not working, fixed. 23 perlnocol Makefile.mid now extracts $event_t from show_nocol_struct_sizes and edits nocollib.pl 24. portmon Bug in testing 'connect' only sites (paulg@@apnic.net) Now uses nonblocking sockets to process many sites in parallel properly. Added QUIT and SIMULCONNECT keywords. Changed array to linked list to allow unlimited number of hosts to monitor. 25. radiusmon Fixed bugs in port insertion (see rcslog) 26. smbmon New monitor for SMB routes (frank@@ansto.gov.au) 27. snmpgeneric Replacement for snmpmon (elanda@@comstar.net) 28. trapmon Complete rewrite to use the new CMU snmp library. Also fixed bug in cmu-snmp/parse.c for() loop. 29. upsmon Monitor UPSs (frank@@ansto.gov.au) 30. utility/Makefile Replace '@@' with \@@ in mail addresses. 31. webnocol.cgi Bug fix to strip trailing siteserverID in http cookie. Handle IP addresses in nslookup (frank@@ansto.gov.au). Clean up $siteaddr before executing (limfung@@pacific.net.sg) @ text @d1 1 a1 1 $NetBSD$ d14 11 @ 1.3 log @Update to nocol-4.2.2b4 Primary reason was to fix a buffer overrun in portmon which caused a coredump whem trying to monitor certain webservers. @ text @d3 4 a6 15 --- Makefile.head.orig Tue Nov 23 23:16:41 1999 +++ Makefile.head Tue Nov 23 23:18:40 1999 @@@@ -37,6 +37,7 @@@@ # DATADIR where datafiles for monitoring programs are created # MSGSDIR for message files that the nocol display shows in # in the 'messages' sub-window +# EXAMPLESDIR directory in which to store example files # HELPDIR where helpfiles for webnocol are kept. BINDIR= $(ROOTDIR)/bin ETCDIR= $(ROOTDIR)/etc @@@@ -44,6 +45,7 @@@@ DATADIR= $(ROOTDIR)/data MSGSDIR= $(ROOTDIR)/msgs HELPDIR= $(ROOTDIR)/help +EXAMPLESDIR= ${ROOTDIR}/share/examples/nocol d8 17 a24 2 ## # NOCOL specific definitions: @ 1.2 log @Add NetBSD RCS Ids. @ text @d3 3 a5 3 --- Makefile.head 1998/07/23 14:17:28 1.1 +++ Makefile.head 1998/07/23 14:21:04 @@@@ -37,11 +37,13 @@@@ d10 1 d13 1 a13 1 PIDDIR= $(ROOTDIR)/run d16 1 @ 1.1 log @Initial import of nocol-4.2b6, "an extensible network and system monitoring utility" into the NetBSD packages collection. @ text @d1 2 @