Re: perror() changes the orientation of stderr to byte-oriented mode if stderr is not oriented yet.
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> > 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 <[email protected]> > > -- Corinna Vinschen Cygwin Maintainer Red Hat
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAls/J5kACgkQ9TYGna5E T6Afdg//SrikZntXLsyN7sYZbQNyGBZdIDbRQysfWnLMzd9LjO8/07B5t92513EJ tvDW07HntvcAWg19JhGv+tgosrdU+m2ilFwhg5rpKqebiuAEehHjZVJGCfuhHoyU XHTO+jNw3f9yi2MT/I+te8zZjw57EFXLzIXdIHuBPVUOCxkJl3njEgwO+7J8BReg VirtxnxeWVVhatmTvEteQE8v/rR8Cl673m2HqtU5Ft+A8jApl4a7VWDB+C6mWwOm tI2+CydDKxRsLeoPF68wRwIC494anjSqsPHDHVgCRGgGusrFOGehVNeeA5t4BVnk R0tE2BQO3cqSwIbxCYUhHaYJJy4ixFHdFbwNdA1JGWj7Rp21gi7q+hGySoytUYiv ZHR+lBz89C7RTtNrpv2prhWp2OHmaevF33SqyFU5MndK6aJfOxnnODqp90zk1YzH efx7iCOC4LVsGX+uEjOXSf2+uCiZ4OQSUGYAqw0i4m6SyM1zl7xzVAAEMuVVRnyZ wQ046chnLllRC5un9hP9N6SOh2DWP2hcD2LbUr+2T5PBYc+89Z5tLO2RGiVutiLU yjg7517ucUeMJF2B708BjNAZIS+wjdUf3zDmt2FYwdhv1bYmE6MiusZpFvSwqmhS DNh/8kzrTHdYicjoteyvbH87hRCbmARrXg7MO5RWcryDKe5Zaag= =ZsAP -----END PGP SIGNATURE-----