Re: perror() changes the orientation of stderr to byte-oriented mode if stderr is not oriented yet.
Eric Blake <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On 07/02/2018 05:28 AM, Corinna Vinschen wrote: >> By the way, I have noticed that psignal() and psiginfo() also have the >> same problem. psignal() belongs to newlib, so the same strategy can >> be applied. However, what can we do for psiginfo()? Only the FreeBSD >> route may be the answer... > > I guess the simplest solution is to use the FreeBSD/OpenBSD method > all the time. If nothing else, it at least would mean fewer variations in practice, regardless of whether POSIX is changed to relax things (the POSIX discussion has been started, but it may be a while before any conclusion is reached; what's more, the C99 standard tried to address it in TC2 (http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_276.htm) but then withdrew that in TC3 because the attempted resolution conflicted with the POSIX wording (http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_322.htm). -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org