summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
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/truss
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/truss')
-rw-r--r--usr.bin/truss/main.c2
1 files changed, 1 insertions, 1 deletions
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