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 09:31, Andre Vieira (lists) wrote:
> On 04/07/18 13:20, Corinna Vinschen wrote:
> > On Jul  3 19:19, Takashi Yano wrote:
> >> On Tue, 3 Jul 2018 18:22:30 +0900
> >> Takashi Yano wrote:
> >>>> I guess the simplest solution is to use the FreeBSD/OpenBSD method
> >>>> all the time.
> >>>
> >>> How about the patch attached?
> >>
> >> Fix typo in commit message.
> >>
> >> -- 
> >> Takashi Yano <[email protected]>
> > 
> > Pushed.
> > 
> > 
> > Thanks,
> > Corinna
> > 
> Hi Takashi, Corinna,
> 
> This patch is breaking our arm and aarch64 bare-metal builds.  It seems
> it can't find sys/uio.h.
> 
> It seems newlib provides a couple of them:
> ./newlib/libc/machine/spu/sys/uio.h
> ./newlib/libc/sys/phoenix/sys/uio.h
> ./newlib/libc/sys/rtems/include/sys/uio.h
> ./winsup/cygwin/include/sys/uio.h
> 
> 
> Do I need to add one for arm and aarch64?  Should there be a default
> one? Suggestions?

Ouch!  I didn't realize that writev is not a required function on
bare metal, sorry.

Takashi, we need a patch to implement perror/psignal without writev, for
instance by calling write twice.  Care to send a followup patch?


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAls94CMACgkQ9TYGna5E
T6BFTA//QAC1FSLQgHMk3uz8Sca5kckTzKvP85qQ+ban7jiqnxFkl9vhqLD7Y7tB
9N8rAKnrP8tlhhtmcQ4YskOZedHHa9axR2dzbpIZGPHe3I3Ug6vOsNXXSkE/9R4b
zGwmKiLYbxkub5uyrfnsfILVWz6Dwxp63TuziJnf1KuNUP01u1X+OWpr7Ig+kSkU
TTUHPApO4eklp5bcYDEymfFYjPRFsh9N17kMiCERoKyv5yWoabJiea4FOhltmwk6
H8+u2AkCESjox4udauzjZrgH0vHF10Oyk8aQ8vZ77MyGT2S6Pc5pvvqqhwICwGf1
E1pLmJjVwL7hwnOAzPXEGWoIVzsxXJDTjGwLzRBMueBrgSiS/rRzSKOzYBWmMili
FJrF0F/3dWVO/xlGIb64SN5hEKMik6r/s/5DhuMfeBUpZsvcPUO+urOExlm17duI
zr+kABweF/mIVm/K55olifnQSCNAg3TcV4gvtoPBijY6SO70W1ytZyU0yjUwQPBW
WFs6WVOPrUqoe+nZ4NnnNBL5uvup9veZEEQpxeAheW2wedDkYG7+XN5UvXX0untr
+2lT0hthd1zX+nEC8OcQ91YQ05kn46mHBt3p0nWn7Xyq6sSz0S2LKSXTnz/BPtmS
PqyW7xjyJfExBq1NeBdbPamD0Tp+p6ndtZErVK+Ems7pRsNd+Qc=
=/Uos
-----END PGP SIGNATURE-----
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.