killall.c (132193) | killall.c (132851) |
---|---|
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> | 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 132193 2004-07-15 07:33:56Z tjr $"); | 29__FBSDID("$FreeBSD: head/usr.bin/killall/killall.c 132851 2004-07-29 18:36:35Z 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> --- 178 unchanged lines hidden (view full) --- 216 break; 217 } 218 if (!sig) 219 nosig(*av); 220 } else if (isdigit((unsigned char)**av)) { 221 sig = strtol(*av, &ep, 10); 222 if (!*av || *ep) 223 errx(1, "illegal signal number: %s", *av); | 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> --- 178 unchanged lines hidden (view full) --- 216 break; 217 } 218 if (!sig) 219 nosig(*av); 220 } else if (isdigit((unsigned char)**av)) { 221 sig = strtol(*av, &ep, 10); 222 if (!*av || *ep) 223 errx(1, "illegal signal number: %s", *av); |
224 if (sig < 0 || sig > NSIG) | 224 if (sig < 0 || sig >= NSIG) |
225 nosig(*av); 226 } else 227 nosig(*av); 228 } 229 ++av; 230 --ac; 231 } else { 232 break; --- 180 unchanged lines hidden --- | 225 nosig(*av); 226 } else 227 nosig(*av); 228 } 229 ++av; 230 --ac; 231 } else { 232 break; --- 180 unchanged lines hidden --- |