pkill.c (2e370a5c7a5528afb124f6273136736e5d5fb798) pkill.c (13e403fdeadd26f9748ba83ea50ee271fbfc862a)
1/* $NetBSD: pkill.c,v 1.16 2005/10/10 22:13:20 kleink Exp $ */
2
3/*-
4 * Copyright (c) 2002 The NetBSD Foundation, Inc.
5 * Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation

--- 99 unchanged lines hidden (view full) ---

108static int longfmt;
109static int matchargs;
110static int fullmatch;
111static int kthreads;
112static int cflags = REG_EXTENDED;
113static kvm_t *kd;
114static pid_t mypid;
115
1/* $NetBSD: pkill.c,v 1.16 2005/10/10 22:13:20 kleink Exp $ */
2
3/*-
4 * Copyright (c) 2002 The NetBSD Foundation, Inc.
5 * Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation

--- 99 unchanged lines hidden (view full) ---

108static int longfmt;
109static int matchargs;
110static int fullmatch;
111static int kthreads;
112static int cflags = REG_EXTENDED;
113static kvm_t *kd;
114static pid_t mypid;
115
116static struct listhead euidlist = SLIST_HEAD_INITIALIZER(list);
117static struct listhead ruidlist = SLIST_HEAD_INITIALIZER(list);
118static struct listhead rgidlist = SLIST_HEAD_INITIALIZER(list);
119static struct listhead pgrplist = SLIST_HEAD_INITIALIZER(list);
120static struct listhead ppidlist = SLIST_HEAD_INITIALIZER(list);
121static struct listhead tdevlist = SLIST_HEAD_INITIALIZER(list);
122static struct listhead sidlist = SLIST_HEAD_INITIALIZER(list);
123static struct listhead jidlist = SLIST_HEAD_INITIALIZER(list);
116static struct listhead euidlist = SLIST_HEAD_INITIALIZER(euidlist);
117static struct listhead ruidlist = SLIST_HEAD_INITIALIZER(ruidlist);
118static struct listhead rgidlist = SLIST_HEAD_INITIALIZER(rgidlist);
119static struct listhead pgrplist = SLIST_HEAD_INITIALIZER(pgrplist);
120static struct listhead ppidlist = SLIST_HEAD_INITIALIZER(ppidlist);
121static struct listhead tdevlist = SLIST_HEAD_INITIALIZER(tdevlist);
122static struct listhead sidlist = SLIST_HEAD_INITIALIZER(sidlist);
123static struct listhead jidlist = SLIST_HEAD_INITIALIZER(jidlist);
124
125static void usage(void) __attribute__((__noreturn__));
126static int killact(const struct kinfo_proc *);
127static int grepact(const struct kinfo_proc *);
128static void makelist(struct listhead *, enum listtype, char *);
129static int takepid(const char *, int);
130
131int

--- 650 unchanged lines hidden ---
124
125static void usage(void) __attribute__((__noreturn__));
126static int killact(const struct kinfo_proc *);
127static int grepact(const struct kinfo_proc *);
128static void makelist(struct listhead *, enum listtype, char *);
129static int takepid(const char *, int);
130
131int

--- 650 unchanged lines hidden ---