This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Jul  5 15:36, Jeff Johnston wrote:
> I have checked in this revised patch to mitigate the reported build
> breakages.  Corinna, feel free to still comment.

No, that's ok.  We're at least FreeBSD compatible now.

Thanks,
Corinna

> 
> -- Jeff J.
> 
> On Thu, Jul 5, 2018 at 10:07 AM, Takashi Yano <takashi.yano@nifty.ne.jp>
> wrote:
> 
> > On Thu, 5 Jul 2018 14:49:00 +0200
> > Corinna Vinschen wrote:
> > > ...I noticed that FreeBSD handles psignal differently.  It writes the
> > > output immediately to STDERR_FILENO, rather than to stderr or
> > > fileno(stderr).  It does also not call fflush or reset the _SOFF flag.
> > ...
> > > Thoughts?
> >
> > Since _newlib_flockfile_start()/end() are defined in stdio/local.h, using
> > _newlib_flockfile_start()/end() from psignal.c is a bit painful. Moreover
> > there are several reports that they can not build newlib on bare metal.
> > Therefore, I imitated FreeBSD in a hurry just because it seems the easiest
> > way.
> >
> > --
> > Takashi Yano <takashi.yano@nifty.ne.jp>
> >

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]