perror() changes the orientation of stderr to byte-oriented mode if stderr is not oriented yet.

Corinna Vinschen vinschen@redhat.com
Mon Jul 2 15:46:00 GMT 2018


Hi Eric,

On Jul  2 06:36, Eric Blake wrote:
> 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).

Thanks for keeping us informed!


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180702/86c69a61/attachment.sig>


More information about the Newlib mailing list