Received: by mail.netbsd.org (Postfix, from userid 605) id 5329084D8D; Sun, 28 Oct 2018 18:26:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 4FA4584D84 for ; Sun, 28 Oct 2018 18:26:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id X9sBuE33i9rY for ; Sun, 28 Oct 2018 18:26:52 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id C08FE84D46 for ; Sun, 28 Oct 2018 18:26:52 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id B9A85FBEE; Sun, 28 Oct 2018 18:26:52 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sun, 28 Oct 2018 18:26:52 +0000 From: "Robert Elz" Subject: CVS commit: src/bin To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20181028182652.B9A85FBEE@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Robert Elz" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: kre Date: Sun Oct 28 18:26:52 UTC 2018 Modified Files: src/bin/kill: kill.c src/bin/sh: trap.c Log Message: Switch from using two printsignals() functions, one in trap.c and one in (the included from bin/kill) kill.c and use just the one in kill.c (which is amended slightly so it can work the way that trap.c needs it to work). This one is chosen as it was a much nicer implementation, and because while kill is always built into the shell, kill also exists without the shell. Leave the old implementation #if 0'd in trap.c (but updated to match the calling convention of the one in kill.c) - for now. Delete references of sys_signame[] from sh/trap.c and along with that several uses of NSIG (unfortunately, there are still more) and replace them with the newer libc functional interfaces. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/bin/kill/kill.c cvs rdiff -u -r1.45 -r1.46 src/bin/sh/trap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.