adapt for KERN_PROC2; regen plist

ok sthen@
This commit is contained in:
okan 2010-01-19 15:25:21 +00:00
parent 1ba29b9f05
commit 9fa2b19bdd
4 changed files with 24 additions and 11 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.14 2007/09/15 21:14:02 merdely Exp $
# $OpenBSD: Makefile,v 1.15 2010/01/19 15:25:21 okan Exp $
COMMENT= signal or reprioritize specified processes
VERSION= 4.1
DISTNAME= skill-${VERSION}
PKGNAME= skill-${VERSION}p2
PKGNAME= skill-${VERSION}p3
CATEGORIES= sysutils
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>

View File

@ -1,8 +1,8 @@
$OpenBSD: patch-machdep_bsd-44_c,v 1.1 2002/09/08 12:46:03 jakob Exp $
$OpenBSD: patch-machdep_bsd-44_c,v 1.2 2010/01/19 15:25:21 okan Exp $
--- machdep/bsd-44.c.orig Fri Apr 5 11:17:21 2002
+++ machdep/bsd-44.c Wed Apr 24 21:31:28 2002
@@ -38,11 +38,54 @@ static char rcsid[] = "$Id: bsd-44.c,v 1
--- machdep/bsd-44.c.orig Thu Apr 4 23:17:21 2002
+++ machdep/bsd-44.c Mon Jan 18 16:49:30 2010
@@ -38,12 +38,55 @@ static char rcsid[] = "$Id: bsd-44.c,v 1.17 2002/03/21
#endif
#endif
@ -25,7 +25,7 @@ $OpenBSD: patch-machdep_bsd-44_c,v 1.1 2002/09/08 12:46:03 jakob Exp $
#include <string.h>
-#include <signal.h>
+#include <unistd.h>
+
+#ifndef P_WEXIT /* backward compatibility */
+#define P_WEXIT SWEXIT
+#endif
@ -56,9 +56,10 @@ $OpenBSD: patch-machdep_bsd-44_c,v 1.1 2002/09/08 12:46:03 jakob Exp $
+#define PROC_UID(kprocp) kprocp->kp_eproc.e_ucred.cr_uid
+#endif
+
+
/*
* Define SigNames, NSig, and TtyDevDir here; they are used by other
* routines and must be global. Everyone seems to have their own
@@ -150,33 +193,6 @@ MdepAction(pid)
NULL_REGEX_FUNCS

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-machdep_nbsd-44_c,v 1.1 2010/01/19 15:25:21 okan Exp $
--- machdep/nbsd-44.c.orig Mon Jan 18 16:52:28 2010
+++ machdep/nbsd-44.c Mon Jan 18 16:53:28 2010
@@ -211,7 +211,7 @@ static int pidmapsiz = sizeof(pidmap) / sizeof(pidmap[
#endif
#endif /* __FreeBSD__ */
-#if defined(__NetBSD_Version__) && defined(KERN_PROC2)
+#if defined(KERN_PROC2)
#define _SYSCTL_ARG KERN_PROC2
#define _SYSCTL_NMIB 6
#define _SYSCTL_PROC kinfo_proc2

View File

@ -1,5 +1,5 @@
@comment $OpenBSD: PLIST,v 1.3 2004/09/15 18:39:33 espie Exp $
bin/skill
bin/snice
@comment $OpenBSD: PLIST,v 1.4 2010/01/19 15:25:21 okan Exp $
@bin bin/skill
@bin bin/snice
@man man/man1/skill.1
@man man/man1/snice.1