commit: 512565f882f7d4ba594838e736c1d252a00a1863
parent: ddc59b95605e43c5bc2682d5ed5d44a702fca8f6
author: Brian Callahan <bcallah@openbsd.org>
date: Fri, 8 May 2020 01:28:36 -0400
Solaris has a function named sig2str. Rename ours oksh_sig2str.
Makes it clear that this is a portability function.
Discovered building oksh-6.7 on Tribblix.
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/signame.c b/signame.c
@@ -142,7 +142,7 @@ static const struct {
};
const char *
-sig2str(int sig)
+oksh_sig2str(int sig)
{
int i;
diff --git a/trap.c b/trap.c
@@ -16,7 +16,7 @@ Trap sigtraps[NSIG + 1];
static struct sigaction Sigact_ign, Sigact_trap;
#ifndef HAVE_SIGNAME
-extern const char *sig2str(int);
+extern const char *oksh_sig2str(int);
#endif
void
@@ -34,7 +34,7 @@ inittraps(void)
#ifdef HAVE_SIGNAME
sigtraps[i].name = sys_signame[i];
#else
- sigtraps[i].name = sig2str(i);
+ sigtraps[i].name = oksh_sig2str(i);
#endif
#ifdef HAVE_SIGLIST
sigtraps[i].mess = sys_siglist[i];