Deleted Added
full compact
killall.c (65125) killall.c (65126)
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 65125 2000-08-27 01:10:55Z peter $
27 * $FreeBSD: head/usr.bin/killall/killall.c 65126 2000-08-27 01:17:11Z peter $
28 */
29
30#include <sys/param.h>
31#include <sys/stat.h>
32#include <sys/user.h>
33#include <sys/sysctl.h>
34#include <fcntl.h>
35#include <dirent.h>

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

58static char *
59upper(const char *str)
60{
61 static char buf[80];
62 char *s;
63
64 strncpy(buf, str, sizeof(buf));
65 buf[sizeof(buf) - 1] = '\0';
28 */
29
30#include <sys/param.h>
31#include <sys/stat.h>
32#include <sys/user.h>
33#include <sys/sysctl.h>
34#include <fcntl.h>
35#include <dirent.h>

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

58static char *
59upper(const char *str)
60{
61 static char buf[80];
62 char *s;
63
64 strncpy(buf, str, sizeof(buf));
65 buf[sizeof(buf) - 1] = '\0';
66 s = buf;
67 while (*s) {
66 for (s = buf; *s; s++)
68 *s = toupper(*s);
67 *s = toupper(*s);
69 s++;
70 }
71 return buf;
72}
73
74
75static void
76printsig(FILE *fp)
77{
78 const char *const * p;

--- 294 unchanged lines hidden ---
68 return buf;
69}
70
71
72static void
73printsig(FILE *fp)
74{
75 const char *const * p;

--- 294 unchanged lines hidden ---