From 7369e24c3897c0e4036830c5e15f88e56f7566c8 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sat, 22 Jun 2019 03:18:55 -0500 Subject: usr.bin/xargs: make buildable with libbsd --- usr.bin/xargs/xargs.c | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'usr.bin/xargs/xargs.c') diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index 5c89377..0a9570d 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -34,17 +34,6 @@ * $xMach: xargs.c,v 1.6 2002/02/23 05:27:47 tim Exp $ */ -#include -#ifndef lint -__COPYRIGHT("@(#) Copyright (c) 1990, 1993\ - The Regents of the University of California. All rights reserved."); -#if 0 -static char sccsid[] = "@(#)xargs.c 8.1 (Berkeley) 6/6/93"; -__FBSDID("$FreeBSD: src/usr.bin/xargs/xargs.c,v 1.62 2006/01/01 22:59:54 jmallett Exp $"); -#endif -__RCSID("$NetBSD: xargs.c,v 1.20 2010/12/17 11:32:57 plunky Exp $"); -#endif /* not lint */ - #include #include @@ -56,7 +45,7 @@ __RCSID("$NetBSD: xargs.c,v 1.20 2010/12/17 11:32:57 plunky Exp $"); #include #include #include -#include +#include #include #include #include @@ -67,7 +56,7 @@ static void parse_input(int, char *[]); static void prerun(int, char *[]); static int prompt(void); static void run(char **); -static void usage(void) __dead; +static void usage(void); void strnsubst(char **, const char *, const char *, size_t); static void waitchildren(const char *, int); @@ -601,7 +590,7 @@ waitchildren(const char *name, int waitall) } else if (WIFSIGNALED (status)) { if (WTERMSIG(status) < NSIG) { warnx("%s terminated by SIG%s", name, - sys_signame[WTERMSIG(status)]); + strsignal(WTERMSIG(status))); } else { warnx("%s terminated by signal %d", name, WTERMSIG(status)); @@ -630,7 +619,7 @@ prompt(void) (void)fprintf(stderr, "?..."); (void)fflush(stderr); if ((response = fgetln(ttyfp, &rsize)) == NULL || - regcomp(&cre, nl_langinfo(YESEXPR), REG_BASIC) != 0) { + regcomp(&cre, nl_langinfo(YESEXPR), 0) != 0) { (void)fclose(ttyfp); return (0); } -- cgit v1.2.3-70-g09d2