This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: perror() changes the orientation of stderr to byte-oriented mode if stderr is not oriented yet.
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 <takashi.yano@nifty.ne.jp>