bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11675: stty bad C semantics


From: Eric Blake
Subject: bug#11675: stty bad C semantics
Date: Tue, 12 Jun 2012 08:58:13 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 06/12/2012 08:52 AM, Voelker, Bernhard wrote:
> Jim Meyering wrote:
> 
>> That has prompted a nicely animated debate ;-)
> 
> ... and it goes on ;-)
> 
> What about these?
> 
> find . -name '*.c' | xargs grep -F '0, };'
> ./src/ls.c:                    mbstate_t mbstate = { 0, };
> ./src/shred.c:  struct Options flags = { 0, };
> ./src/tr.c:  bool in_set[N_CHARS] = { 0, };
> ./src/wc.c:      mbstate_t state = { 0, };
> ./src/pathchk.c:      mbstate_t mbstate = { 0, };

What about them?  None of them are using memcmp(), so none of them care
what the padding bytes (if any) got set to.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]