Deleted Added
full compact
killall.c (76169) killall.c (76678)
1/*-
2 * Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org>
3 * Copyright (c) 2000 Paul Saab <ps@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2000 Peter Wemm <peter@FreeBSD.org>
3 * Copyright (c) 2000 Paul Saab <ps@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/usr.bin/killall/killall.c 76169 2001-05-01 08:46:02Z markm $
27 * $FreeBSD: head/usr.bin/killall/killall.c 76678 2001-05-16 11:13:16Z phk $
28 */
29
30#include <sys/cdefs.h>
31#include <sys/param.h>
32#include <sys/lock.h>
33#include <sys/stat.h>
34#include <sys/user.h>
35#include <sys/sysctl.h>

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

119 char thiscmd[MAXCOMLEN + 1];
120 pid_t thispid;
121 uid_t thisuid;
122 dev_t thistdev;
123 int sig = SIGTERM;
124 const char *const *p;
125 char *ep;
126 int errors = 0;
28 */
29
30#include <sys/cdefs.h>
31#include <sys/param.h>
32#include <sys/lock.h>
33#include <sys/stat.h>
34#include <sys/user.h>
35#include <sys/sysctl.h>

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

119 char thiscmd[MAXCOMLEN + 1];
120 pid_t thispid;
121 uid_t thisuid;
122 dev_t thistdev;
123 int sig = SIGTERM;
124 const char *const *p;
125 char *ep;
126 int errors = 0;
127 int mib[3];
127 int mib[4];
128 size_t miblen;
129 int st, nprocs;
130 size_t size;
131 int matched;
132 int killed = 0;
133
134 prog = av[0];
135 av++;

--- 238 unchanged lines hidden ---
128 size_t miblen;
129 int st, nprocs;
130 size_t size;
131 int matched;
132 int killed = 0;
133
134 prog = av[0];
135 av++;

--- 238 unchanged lines hidden ---