libc: Make the signal name array uppercase.
authorSascha Wildner <saw@online.de>
Sat, 21 Nov 2020 20:35:20 +0000 (21:35 +0100)
committerSascha Wildner <saw@online.de>
Sat, 21 Nov 2020 20:35:20 +0000 (21:35 +0100)
commit7361f70fab9ce9ff43a6e2c654df1c8895619921
treea4ebcd71d5cae4cc2bd314884f742f2bbff58ee7
parentb6f94a640e0bcabc96f61c86255b20cf09ce68b5
libc: Make the signal name array uppercase.

This is to satisfy POSIX which requires that the string printed by
'kill -l <signal number>' shall be the name of the symbolic constant
(for example, SIGKILL) without the 'SIG' part.

This also fixes a number of sh(1) tests.

While here, sync a bit further with FreeBSD. Specifically, use
C99 designated initialization.

Taken-from: FreeBSD
lib/libc/gen/siglist.c