[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Message string vs Coding Standards
From: |
Eric Blake |
Subject: |
Re: Message string vs Coding Standards |
Date: |
Wed, 01 Dec 2010 10:22:48 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6 |
On 12/01/2010 09:53 AM, John Darrington wrote:
> This line in lib/siglist.h:
>
> init_sig (SIGILL, "ILL", N_("Illegal instruction"))
>
> contradicts the GNU Coding Standards which says:
>
> `Please do not use the term "illegal" to refer to erroneous input to a
> computer program. Please use "invalid" for this, and reserve the term
> "illegal" for activities prohibited by law.'
That's the historical name for SIGILL, and that string is still heavily
used in most modern platforms. For example, on GNU/Linux, 'man 7
signal' includes this line:
SIGILL 4 Core Illegal Instruction
and glibc/sysdeps/generic/siglist.h matches that spelling.
But I suppose a name like "Ill-formed instruction" would be equally
coherent without violating the GNU Coding Standards, although it would
only affect platforms that don't natively provide SIGILL (is that just
mingw?), even if it would take more effort to convince the glibc folks
to also adjust their naming in strsignal()/psignal().
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature