head 1.13; access; symbols pkgsrc-2026Q1:1.13.0.152 pkgsrc-2026Q1-base:1.13 pkgsrc-2025Q4:1.13.0.150 pkgsrc-2025Q4-base:1.13 pkgsrc-2025Q3:1.13.0.148 pkgsrc-2025Q3-base:1.13 pkgsrc-2025Q2:1.13.0.146 pkgsrc-2025Q2-base:1.13 pkgsrc-2025Q1:1.13.0.144 pkgsrc-2025Q1-base:1.13 pkgsrc-2024Q4:1.13.0.142 pkgsrc-2024Q4-base:1.13 pkgsrc-2024Q3:1.13.0.140 pkgsrc-2024Q3-base:1.13 pkgsrc-2024Q2:1.13.0.138 pkgsrc-2024Q2-base:1.13 pkgsrc-2024Q1:1.13.0.136 pkgsrc-2024Q1-base:1.13 pkgsrc-2023Q4:1.13.0.134 pkgsrc-2023Q4-base:1.13 pkgsrc-2023Q3:1.13.0.132 pkgsrc-2023Q3-base:1.13 pkgsrc-2023Q2:1.13.0.130 pkgsrc-2023Q2-base:1.13 pkgsrc-2023Q1:1.13.0.128 pkgsrc-2023Q1-base:1.13 pkgsrc-2022Q4:1.13.0.126 pkgsrc-2022Q4-base:1.13 pkgsrc-2022Q3:1.13.0.124 pkgsrc-2022Q3-base:1.13 pkgsrc-2022Q2:1.13.0.122 pkgsrc-2022Q2-base:1.13 pkgsrc-2022Q1:1.13.0.120 pkgsrc-2022Q1-base:1.13 pkgsrc-2021Q4:1.13.0.118 pkgsrc-2021Q4-base:1.13 pkgsrc-2021Q3:1.13.0.116 pkgsrc-2021Q3-base:1.13 pkgsrc-2021Q2:1.13.0.114 pkgsrc-2021Q2-base:1.13 pkgsrc-2021Q1:1.13.0.112 pkgsrc-2021Q1-base:1.13 pkgsrc-2020Q4:1.13.0.110 pkgsrc-2020Q4-base:1.13 pkgsrc-2020Q3:1.13.0.108 pkgsrc-2020Q3-base:1.13 pkgsrc-2020Q2:1.13.0.104 pkgsrc-2020Q2-base:1.13 pkgsrc-2020Q1:1.13.0.84 pkgsrc-2020Q1-base:1.13 pkgsrc-2019Q4:1.13.0.106 pkgsrc-2019Q4-base:1.13 pkgsrc-2019Q3:1.13.0.102 pkgsrc-2019Q3-base:1.13 pkgsrc-2019Q2:1.13.0.100 pkgsrc-2019Q2-base:1.13 pkgsrc-2019Q1:1.13.0.98 pkgsrc-2019Q1-base:1.13 pkgsrc-2018Q4:1.13.0.96 pkgsrc-2018Q4-base:1.13 pkgsrc-2018Q3:1.13.0.94 pkgsrc-2018Q3-base:1.13 pkgsrc-2018Q2:1.13.0.92 pkgsrc-2018Q2-base:1.13 pkgsrc-2018Q1:1.13.0.90 pkgsrc-2018Q1-base:1.13 pkgsrc-2017Q4:1.13.0.88 pkgsrc-2017Q4-base:1.13 pkgsrc-2017Q3:1.13.0.86 pkgsrc-2017Q3-base:1.13 pkgsrc-2017Q2:1.13.0.82 pkgsrc-2017Q2-base:1.13 pkgsrc-2017Q1:1.13.0.80 pkgsrc-2017Q1-base:1.13 pkgsrc-2016Q4:1.13.0.78 pkgsrc-2016Q4-base:1.13 pkgsrc-2016Q3:1.13.0.76 pkgsrc-2016Q3-base:1.13 pkgsrc-2016Q2:1.13.0.74 pkgsrc-2016Q2-base:1.13 pkgsrc-2016Q1:1.13.0.72 pkgsrc-2016Q1-base:1.13 pkgsrc-2015Q4:1.13.0.70 pkgsrc-2015Q4-base:1.13 pkgsrc-2015Q3:1.13.0.68 pkgsrc-2015Q3-base:1.13 pkgsrc-2015Q2:1.13.0.66 pkgsrc-2015Q2-base:1.13 pkgsrc-2015Q1:1.13.0.64 pkgsrc-2015Q1-base:1.13 pkgsrc-2014Q4:1.13.0.62 pkgsrc-2014Q4-base:1.13 pkgsrc-2014Q3:1.13.0.60 pkgsrc-2014Q3-base:1.13 pkgsrc-2014Q2:1.13.0.58 pkgsrc-2014Q2-base:1.13 pkgsrc-2014Q1:1.13.0.56 pkgsrc-2014Q1-base:1.13 pkgsrc-2013Q4:1.13.0.54 pkgsrc-2013Q4-base:1.13 pkgsrc-2013Q3:1.13.0.52 pkgsrc-2013Q3-base:1.13 pkgsrc-2013Q2:1.13.0.50 pkgsrc-2013Q2-base:1.13 pkgsrc-2013Q1:1.13.0.48 pkgsrc-2013Q1-base:1.13 pkgsrc-2012Q4:1.13.0.46 pkgsrc-2012Q4-base:1.13 pkgsrc-2012Q3:1.13.0.44 pkgsrc-2012Q3-base:1.13 pkgsrc-2012Q2:1.13.0.42 pkgsrc-2012Q2-base:1.13 pkgsrc-2012Q1:1.13.0.40 pkgsrc-2012Q1-base:1.13 pkgsrc-2011Q4:1.13.0.38 pkgsrc-2011Q4-base:1.13 pkgsrc-2011Q3:1.13.0.36 pkgsrc-2011Q3-base:1.13 pkgsrc-2011Q2:1.13.0.34 pkgsrc-2011Q2-base:1.13 pkgsrc-2011Q1:1.13.0.32 pkgsrc-2011Q1-base:1.13 pkgsrc-2010Q4:1.13.0.30 pkgsrc-2010Q4-base:1.13 pkgsrc-2010Q3:1.13.0.28 pkgsrc-2010Q3-base:1.13 pkgsrc-2010Q2:1.13.0.26 pkgsrc-2010Q2-base:1.13 pkgsrc-2010Q1:1.13.0.24 pkgsrc-2010Q1-base:1.13 pkgsrc-2009Q4:1.13.0.22 pkgsrc-2009Q4-base:1.13 pkgsrc-2009Q3:1.13.0.20 pkgsrc-2009Q3-base:1.13 pkgsrc-2009Q2:1.13.0.18 pkgsrc-2009Q2-base:1.13 pkgsrc-2009Q1:1.13.0.16 pkgsrc-2009Q1-base:1.13 pkgsrc-2008Q4:1.13.0.14 pkgsrc-2008Q4-base:1.13 pkgsrc-2008Q3:1.13.0.12 pkgsrc-2008Q3-base:1.13 cube-native-xorg:1.13.0.10 cube-native-xorg-base:1.13 pkgsrc-2008Q2:1.13.0.8 pkgsrc-2008Q2-base:1.13 cwrapper:1.13.0.6 pkgsrc-2008Q1:1.13.0.4 pkgsrc-2008Q1-base:1.13 pkgsrc-2007Q4:1.13.0.2 pkgsrc-2007Q4-base:1.13 pkgsrc-2007Q3:1.12.0.16 pkgsrc-2007Q3-base:1.12 pkgsrc-2007Q2:1.12.0.14 pkgsrc-2007Q2-base:1.12 pkgsrc-2007Q1:1.12.0.12 pkgsrc-2007Q1-base:1.12 pkgsrc-2006Q4:1.12.0.10 pkgsrc-2006Q4-base:1.12 pkgsrc-2006Q3:1.12.0.8 pkgsrc-2006Q3-base:1.12 pkgsrc-2006Q2:1.12.0.6 pkgsrc-2006Q2-base:1.12 pkgsrc-2006Q1:1.12.0.4 pkgsrc-2006Q1-base:1.12 pkgsrc-2005Q4:1.12.0.2 pkgsrc-2005Q4-base:1.12 pkgsrc-2005Q3:1.11.0.16 pkgsrc-2005Q3-base:1.11 pkgsrc-2005Q2:1.11.0.14 pkgsrc-2005Q2-base:1.11 pkgsrc-2005Q1:1.11.0.12 pkgsrc-2005Q1-base:1.11 pkgsrc-2004Q4:1.11.0.10 pkgsrc-2004Q4-base:1.11 pkgsrc-2004Q3:1.11.0.8 pkgsrc-2004Q3-base:1.11 pkgsrc-2004Q2:1.11.0.6 pkgsrc-2004Q2-base:1.11 pkgsrc-2004Q1:1.11.0.4 pkgsrc-2004Q1-base:1.11 pkgsrc-2003Q4:1.11.0.2 pkgsrc-2003Q4-base:1.11 netbsd-1-6-1:1.10.0.4 netbsd-1-6-1-base:1.10 netbsd-1-6:1.10.0.6 netbsd-1-6-RELEASE-base:1.10 pkgviews:1.10.0.2 pkgviews-base:1.10 buildlink2-base:1.8 netbsd-1-5-PATCH003:1.7 netbsd-1-5-PATCH001:1.7 netbsd-1-5-RELEASE:1.7 netbsd-1-4-PATCH003:1.7; locks; strict; comment @# @; 1.13 date 2007.10.27.02.52.23; author obache; state Exp; branches; next 1.12; 1.12 date 2005.12.06.13.27.01; author joerg; state Exp; branches; next 1.11; 1.11 date 2003.09.23.13.58.37; author wiz; state Exp; branches; next 1.10; 1.10 date 2002.06.28.10.45.32; author abs; state Exp; branches; next 1.9; 1.9 date 2002.06.23.14.42.01; author kent; state Exp; branches; next 1.8; 1.8 date 2002.04.29.10.43.17; author wiz; state dead; branches; next 1.7; 1.7 date 2000.09.03.13.31.00; author wiz; state Exp; branches; next 1.6; 1.6 date 2000.06.26.14.11.51; author simonb; state Exp; branches; next 1.5; 1.5 date 2000.06.26.07.54.42; author simonb; state Exp; branches; next 1.4; 1.4 date 2000.02.20.02.02.52; author wiz; state dead; branches; next 1.3; 1.3 date 2000.02.19.02.03.13; author wiz; state Exp; branches; next 1.2; 1.2 date 99.01.05.19.12.00; author kim; state dead; branches; next 1.1; 1.1 date 99.01.05.00.32.29; author kim; state Exp; branches; next ; desc @@ 1.13 log @Update skill to 4.1.4. Based on patch provided by Yakovetsky Vladimir in PR 36788. Add target for FreeBSD and Linux (and IRIX/OSF/AIX/HUPX, not tested). XXX: Should use distribution's Config script instead? 4.1.2: Minor feature enhancements This release features support for Cygwin. It validates on Solaris 5.9-10, HP-UX 11.23, and FreeBSD 5.3. There is an HP-UX 64-bit fix. The FreeBSD 5.x special proc handling was improved, and there were some minor cleanups. 4.1.3: Minor feature enhancements This release adds support for AIX v5. It has a work-around for a Solaris issue where the process open() call would hang. 4.1.4: Minor bugfixes skill and snice now act on each process only once (for systems like BSD that return the same Process ID multiple times, once for each instantiated thread). Support has also been added for FreeBSD 6.2 and HP-UX 11.31. @ text @$NetBSD: patch-ab,v 1.12 2005/12/06 13:27:01 joerg Exp $ --- main.c.orig 2007-05-04 20:56:20.000000000 +0000 +++ main.c @@@@ -44,8 +44,18 @@@@ const char *CopyrightVersion = "%s %s\n\ #include "conf.h" #include +#ifdef __STDC__ +#include +#endif #include #include +#ifdef __NetBSD__ +#include +#endif + +#ifndef KI_MAXCOMLEN /* Pre NetBSD/1.5. Missing on !NetBSD */ +#define KI_MAXCOMLEN 24 +#endif /* * Processes which could not be checked -- usually due to permission @@@@ -137,7 +147,7 @@@@ main(argc, argv) for (i = 0; i < CmdIndx; i++) { cmdp = (CmdList + i); if ((cmdp->flags & CMD_FLAG_EXACT) != 0 && - STREQU(CMD, cmdp->cmd.cmdstr)) + STRNEQU(CMD, cmdp->cmd.cmdstr, KI_MAXCOMLEN-8)) break; else if ((cmdp->flags & CMD_FLAG_REGEX) != 0 && RegexMatch(CMD, cmdp) != 0) @@@@ -384,8 +394,6 @@@@ Usage(error) char * SysErr() { - extern int errno; - #if defined(HAS_STRERROR) || defined(_LP64) char *se = strerror(errno); return((se==NULL)? "unknown error": se); @ 1.12 log @Fix errno. On DragonFly, define HAS_STRERROR to avoid conflicts with system headers. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- main.c.orig 2003-08-19 00:36:08.000000000 +0000 d5 3 a7 1 @@@@ -46,6 +46,13 @@@@ const char *CopyrightVersion = "%s %s\n\ d9 3 d24 1 a24 1 @@@@ -137,7 +144,7 @@@@ main(argc, argv) d33 1 a33 1 @@@@ -330,8 +337,6 @@@@ Usage(error) @ 1.11 log @Add HOMEPAGE, and make compile on non-NetBSD. From Jonathan Perkin in PR 22909. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.10 2002/06/28 10:45:32 abs Exp $ d3 3 a5 3 --- main.c.orig Sat Apr 6 05:26:01 2002 +++ main.c Tue Sep 23 10:53:01 2003 @@@@ -46,7 +46,14 @@@@ d12 1 a12 1 d16 1 a16 1 + d19 1 a19 2 * problems (SunOS 4.1, SysVR4) -- are tallied in "MissedProcCnt". @@@@ -137,7 +144,7 @@@@ d28 9 @ 1.10 log @Updated skill to 4.1nb2 Fix for pre NetBSD-1.5 systems. @ text @d1 1 a1 1 $NetBSD$ d4 2 a5 2 +++ main.c @@@@ -46,6 +46,12 @@@@ const char *CopyrightVersion = "%s %s\n\ d10 1 a10 4 +# include +# ifndef KI_MAXCOMLEN /* Pre 1.5 */ +# define KI_MAXCOMLEN 24 +# endif d13 4 d19 2 a20 1 @@@@ -137,7 +143,7 @@@@ main(argc, argv) @ 1.9 log @Fix for truncated process name problem decribed in pkg/10416. Increment PKGREVISION. @ text @d3 1 a3 1 --- main.c~ Sat Apr 6 13:26:01 2002 d5 1 a5 1 @@@@ -46,6 +46,9 @@@@ d11 3 d18 1 a18 1 @@@@ -137,7 +140,7 @@@@ @ 1.8 log @Update to 4.1 -- patch-ab has been folded into the distribution. @ text @d1 5 a5 20 $NetBSD: patch-ab,v 1.7 2000/09/03 13:31:00 wiz Exp $ --- machdep/bsd-44.c.orig Sun Feb 20 07:37:39 2000 +++ machdep/bsd-44.c Tue Jun 27 00:03:39 2000 @@@@ -23,11 +23,54 @@@@ #endif #endif +#if defined(BSD4_4) && (BSD < 199306) +#include +#include +#define _ALLPROCFLAG KINFO_PROC_ALL +#else +#include +#include +#define _ALLPROCFLAG KERN_PROC_ALL +#endif + #include +#include +#include d7 4 a10 8 -#include +#include #include -#include +#include + +#ifndef P_WEXIT /* backward compatibility */ +#define P_WEXIT SWEXIT a11 32 + +static char *pidmap[] = { "swapper", "init", "pagedaemon" }; +static int pidmapsiz = sizeof(pidmap) / sizeof(pidmap[0]); + +#ifdef KERN_PROC2 +#define CMDLEN KI_MAXCOMLEN +#define PROCTYPE struct kinfo_proc2 +#define SYSCTL_TO_USE KERN_PROC2 +#define SYSCTL_MIBS 6 +#define PROC_COMM(kprocp) kprocp->p_comm +#define PROC_FLAG(kprocp) kprocp->p_flag +#define PROC_PID(kprocp) kprocp->p_pid +#define PROC_STAT(kprocp) kprocp->p_stat +#define PROC_TDEV(kprocp) kprocp->p_tdev +#define PROC_UID(kprocp) kprocp->p_uid +#else +#define PROCTYPE struct kinfo_proc +#define SYSCTL_TO_USE KERN_PROC +#define SYSCTL_MIBS 4 +#define PROC_COMM(kprocp) kprocp->kp_proc.p_comm +#define PROC_FLAG(kprocp) kprocp->kp_proc.p_flag +#define PROC_PID(kprocp) kprocp->kp_proc.p_pid +#define PROC_STAT(kprocp) kprocp->kp_proc.p_stat +#define PROC_TDEV(kprocp) kprocp->kp_eproc.e_tdev +#define PROC_UID(kprocp) kprocp->kp_eproc.e_ucred.cr_uid +#endif + /* * Define SigNames, NSig, and TtyDevDir here; they are used by other @@@@ -132,33 +175,6 @@@@ } d14 10 a23 143 - * Now, set up everything we need to write a GetProc() routine. - */ - -#include -#include - -#if defined(BSD4_4) && (BSD < 199306) -#include -#include -#define _ALLPROCFLAG KINFO_PROC_ALL -#else -#include -#include -#define _ALLPROCFLAG KERN_PROC_ALL -#endif - -#ifndef P_WEXIT /* backward compatibility */ -#define P_WEXIT SWEXIT -#endif - -static char *pidmap[] = { "swapper", "init", "pagedaemon" }; -static int pidmapsiz = sizeof(pidmap) / sizeof(pidmap[0]); - -#define PROC(kprocp) kprocp->kp_proc -#define EPROC(kprocp) kprocp->kp_eproc - -/* * GetProc() * * Fill in and return a `struct ProcInfo' with information about the @@@@ -169,54 +185,54 @@@@ { static struct ProcInfo procinfo; static int nproc = -1; - static struct kinfo_proc *aproc; - static kvm_t *kd = NULL; -#ifdef _POSIX2_LINE_MAX - char errbuf[_POSIX2_LINE_MAX]; -#else - char errbuf[2048]; -#endif + static PROCTYPE *aproc; + int mib[6]; + size_t size; /* * If this is our first time here, prepare to read procs from kernel. */ if (nproc == -1) { - kd = kvm_openfiles((char *)NULL, (char *)NULL, (char *)NULL, - O_RDONLY, errbuf); - if (kd == NULL) { - fprintf(stderr, "%s: %s\n", ProgName, errbuf); - exit(EX_SERR); - } + mib[0] = CTL_KERN; + mib[1] = SYSCTL_TO_USE; + mib[2] = _ALLPROCFLAG; + mib[3] = 0; +#ifdef KERN_PROC2 + mib[4] = sizeof(PROCTYPE); + mib[5] = 0; +#endif + if (sysctl(mib, SYSCTL_MIBS, NULL, &size, NULL, 0) < 0) + err(1, "sysctl kern.proc2"); + aproc = (PROCTYPE *)malloc(size); + if (aproc == NULL) + errx(1, "out of memory"); - if ((aproc=kvm_getprocs(kd, _ALLPROCFLAG, 0, &nproc)) == NULL) { - fprintf(stderr, "%s: %s\n", ProgName, kvm_geterr(kd)); - exit(EX_SERR); - } +#ifdef KERN_PROC2 + mib[5] = size / sizeof(PROCTYPE); +#endif + if (sysctl(mib, SYSCTL_MIBS, aproc, &size, NULL, 0) < 0) + err(1, "sysctl kern.proc2"); + nproc = size / sizeof(PROCTYPE); } - if (nproc == 0) { - if (kd != NULL) { - kvm_close(kd); - kd = NULL; - } - return((struct ProcInfo *)NULL); - } + if (nproc == 0) + return(NULL); do { - if (PROC(aproc).p_stat != 0) { + if (PROC_STAT(aproc) != 0) { /* * Make sure this isn't a "zombie" or "exiting" * process. If it is, fill in procinfo and return. */ procinfo.pi_flags = 0; - procinfo.pi_pid = (pid_T) PROC(aproc).p_pid; - procinfo.pi_uid = (uid_T) EPROC(aproc).e_ucred.cr_uid; + procinfo.pi_pid = (pid_T) PROC_PID(aproc); + procinfo.pi_uid = (uid_T) PROC_UID(aproc); - if (PROC(aproc).p_stat == SZOMB) { /* zombie */ + if (PROC_STAT(aproc) == SZOMB) { /* zombie */ static char *zombie = ""; procinfo.pi_flags |= PI_ZOMBIE; procinfo.pi_cmd = zombie; - } else if (PROC(aproc).p_flag & P_WEXIT) { /* exiting */ + } else if (PROC_FLAG(aproc) & P_WEXIT) { /* exiting */ static char *exiting = ""; procinfo.pi_flags |= PI_SWEXIT; procinfo.pi_cmd = exiting; @@@@ -228,22 +244,22 @@@@ return(&procinfo); } } - } while (PROC(aproc).p_stat == 0); + } while (PROC_STAT(aproc) == 0); /* * We now have a process (`aproc'). * Fill in the rest of `procinfo'. */ - if (EPROC(aproc).e_tdev != NODEV) { /* controlling tty */ + if (PROC_TDEV(aproc) != NODEV) { /* controlling tty */ procinfo.pi_flags |= PI_CTLTTY; - procinfo.pi_tty = (tty_T) EPROC(aproc).e_tdev; + procinfo.pi_tty = (tty_T) PROC_TDEV(aproc); } - if (PROC(aproc).p_pid < pidmapsiz) { /* special */ - procinfo.pi_cmd = pidmap[PROC(aproc).p_pid]; + if (PROC_PID(aproc) < pidmapsiz) { /* special */ + procinfo.pi_cmd = pidmap[PROC_PID(aproc)]; procinfo.pi_flags |= PI_ASKUSR; } else /* set path-stripped command name */ - SETCMD(procinfo.pi_cmd, PROC(aproc).p_comm, MAXCOMLEN) + SETCMD(procinfo.pi_cmd, PROC_COMM(aproc), MAXCOMLEN) nproc--; aproc++; @ 1.7 log @add RCS Id @ text @d1 1 a1 1 $NetBSD$ @ 1.6 log @Mainly cosmetic changes from previous: + move includes files from middle of bsd-44.c module to top. + remove unused variables. @ text @d1 1 @ 1.5 log @Use the kern.proc (or kern.proc2 if available) sysctl directly, so that libkvm isn't needed, and skill/snice can run without setgid. Tested on 1.3.3, 1.4 and 1.5A, and should work all the way back to NetBSD 0.8. Note: applies for NetBSD only, not Solaris :) @ text @a0 2 $NetBSD$ d2 4 a5 4 +++ machdep/bsd-44.c Fri Jun 23 13:33:09 2000 @@@@ -135,9 +135,6 @@@@ * Now, set up everything we need to write a GetProc() routine. */ d7 27 a33 12 -#include -#include - #if defined(BSD4_4) && (BSD < 199306) #include #include @@@@ -155,8 +152,28 @@@@ static char *pidmap[] = { "swapper", "init", "pagedaemon" }; static int pidmapsiz = sizeof(pidmap) / sizeof(pidmap[0]); -#define PROC(kprocp) kprocp->kp_proc -#define EPROC(kprocp) kprocp->kp_eproc d56 6 d64 27 d92 3 a94 1 @@@@ -169,54 +186,59 @@@@ d100 5 a105 5 #ifdef _POSIX2_LINE_MAX char errbuf[_POSIX2_LINE_MAX]; #else char errbuf[2048]; #endif d178 1 a178 1 @@@@ -228,22 +250,22 @@@@ @ 1.4 log @updated to skill 3.7.9, since author incorporated patch. Changes: Skill Version 3.7, Patch #8 [affects all] - pid #4 not special for Solaris [from JD Paul ] - generic Linux /proc code [from Michael Smith ] - prevent compiler code reorder of SysErr() call in main() - New OSes: Linux 2.2, Compaq Tru64 Unix 5.0, SCO UnixWare 7.0.1 - Fixed GuessOS for Tru64 Unix and AIX 4.3 - no-ctrling-tty support for: Linux, AIX, HPUX 10/11, SysVr4 (Solaris) - Rewrite of Linux GetProc(). - Larger errbuf for 4.4BSD [Thomas Klausner ] @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.3 2000/02/19 02:03:13 wiz Exp $ d3 52 a54 4 --- ./machdep/bsd-44.c.orig Tue Jan 5 18:23:42 1999 +++ ./machdep/bsd-44.c Sat Feb 19 02:51:38 2000 @@@@ -144,6 +144,7 @@@@ #define _ALLPROCFLAG KINFO_PROC_ALL d56 1 a56 3 #include +#include #define _ALLPROCFLAG KERN_PROC_ALL d58 26 d85 51 a135 6 @@@@ -170,7 +171,7 @@@@ static int nproc = -1; static struct kinfo_proc *aproc; static kvm_t *kd = NULL; - char errbuf[256]; + char errbuf[_POSIX2_LINE_MAX]; d138 21 a158 1 * If this is our first time here, prepare to read procs from kernel. @ 1.3 log @${UVM} cleanup: while we're at it, make the package work again, and upgrade it to 3.7@@P7, also called 3.7.8 @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Updated to skill-3.7.7. The author included my patch to avoid segfaults on BSD 4.4 -derived systems (related to getting the number of signals right). Adds support for SIGPWR on NetBSD. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1 1999/01/05 00:32:29 kim Exp $ d3 9 a11 11 --- machdep/bsd-44.c.ORIG Thu Mar 20 11:20:09 1997 +++ machdep/bsd-44.c Mon Jan 4 19:24:00 1999 @@@@ -41,9 +41,9 @@@@ "PIPE", "ALRM", "TERM", "URG", "STOP", "TSTP", /* 13 - 18 */ "CONT", "CHLD", "TTIN", "TTOU", "IO", "XCPU", /* 19 - 24 */ "XFSZ", "VTALRM", "PROF", "WINCH", "INFO", "USR1", /* 25 - 30 */ - "USR2", "32" /* 31 - 32 */ + "USR2", "PWR" /* 31 - 32 */ }; -int NSig = NSIG; +int NSig = NSIG - 1; d13 9 a21 2 #define SETCMD(dst,src,maxlen) { \ if (maxlen > 0) src[maxlen] = '\0'; \ @ 1.1 log @Updated to 3.7.6 (3.7@@P5) @ text @d1 1 a1 1 $NetBSD$ @