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

Takashi Yano <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Hi Corinna,

Thank you for checking.

On Thu, 5 Jul 2018 13:19:21 +0200
Corinna Vinschen wrote:
> Yes, we need it, the entire operation, flushing and writing, must be
> cancel-safe and synchronized with other access to the stderr FILE.
> 
> Comparing with FreeBSD, there's also something missing.  After the
> write operation, the offset in the FILE structure is incorrect.
> Consequentially the __SOFF flag is reset to 0 last thing before
> unlocking the file:
> 
>   stderr->_flags &= ~__SOFF;

Do you mean these are necessary for both perror.c and psignal.c?
How about psiginfo() case?

-- 
Takashi Yano <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.