summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-02-04 16:40:50 +0000
committerjilles <jilles@FreeBSD.org>2011-02-04 16:40:50 +0000
commitdbecc33067971cfd38a340e4435a163832f7601d (patch)
tree9329b5fbe679fd0331b8e009f284c8f7704ad8e3 /usr.bin
parent3060e03b875ee43ddb240f06123eabaa98ae70a5 (diff)
downloadFreeBSD-src-dbecc33067971cfd38a340e4435a163832f7601d.zip
FreeBSD-src-dbecc33067971cfd38a340e4435a163832f7601d.tar.gz
Make sys_signame upper case.
This matches the constants from <signal.h> with 'SIG' removed, which POSIX requires kill and trap to accept and 'kill -l' to write. 'kill -l', 'trap', 'trap -l' output is now upper case. In Turkish locales, signal names with an upper case 'I' are now accepted, while signal names with a lower case 'i' are no longer accepted, and the output of 'killall -l' now contains proper capital 'I' without dot instead of a dotted capital 'I'.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/killall/killall.c2
-rw-r--r--usr.bin/truss/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/killall/killall.c b/usr.bin/killall/killall.c
index 0a779fd..2342a32 100644
--- a/usr.bin/killall/killall.c
+++ b/usr.bin/killall/killall.c
@@ -218,7 +218,7 @@ main(int ac, char **av)
break;
default:
if (isalpha((unsigned char)**av)) {
- if (strncasecmp(*av, "sig", 3) == 0)
+ if (strncasecmp(*av, "SIG", 3) == 0)
*av += 3;
for (sig = NSIG, p = sys_signame + 1;
--sig; ++p)
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c
index d25c4de..58ed5d5 100644
--- a/usr.bin/truss/main.c
+++ b/usr.bin/truss/main.c
@@ -155,7 +155,7 @@ strsig(int sig)
ret = NULL;
if (sig > 0 && sig < NSIG) {
int i;
- asprintf(&ret, "sig%s", sys_signame[sig]);
+ asprintf(&ret, "SIG%s", sys_signame[sig]);
if (ret == NULL)
return (NULL);
for (i = 0; ret[i] != '\0'; ++i)
OpenPOWER on IntegriCloud