Have perror() save errstr (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 9 Sep 2015 17:09:24 +0000 (13:09 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Sep 2015 19:14:00 +0000 (15:14 -0400)
commit8b8231a94042085fa6446810431af891736af8a0
treea1778fbef7b3e900f0c1324a4230d6341f5d0735
parent40e9622f900a50c8fb8dbc304713bf700ef0f3e1
Have perror() save errstr (XCC)

perror() was occasionally losing errstr info.  The reason was that
perror was internally making syscalls, some of which would clobber
errstr.  For this reason, which is the same reason to save errno early,
we also need to save errstr early.

Rebuild glibc if you want perror to work correctly.
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/perror.c