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: --- 12 unchanged lines hidden (view full) --- 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 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/usr.bin/killall/killall.c 124681 2004-01-18 17:49:25Z maxim $"); |
30 31#include <sys/param.h> 32#include <sys/jail.h> 33#include <sys/stat.h> 34#include <sys/user.h> 35#include <sys/sysctl.h> 36#include <fcntl.h> 37#include <dirent.h> --- 7 unchanged lines hidden (view full) --- 45#include <err.h> 46#include <errno.h> 47#include <unistd.h> 48 49static void __dead2 50usage(void) 51{ 52 |
53 fprintf(stderr, "usage: killall [-dlmsvz] [-help] [-j jid]\n"); |
54 fprintf(stderr, |
55 " [-u user] [-t tty] [-c cmd] [-SIGNAL] [cmd]...\n"); |
56 fprintf(stderr, "At least one option or argument to specify processes must be given.\n"); 57 exit(1); 58} 59 60static char * 61upper(const char *str) 62{ 63 static char buf[80]; --- 335 unchanged lines hidden --- |