Don't write/obtain errno unless sysc.err is set
authorAndrew Waterman <waterman@cs.berkeley.edu>
Mon, 22 Apr 2013 22:20:14 +0000 (15:20 -0700)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Mon, 22 Apr 2013 22:20:14 +0000 (15:20 -0700)
commit506a5f68c248c7f5fd2408232f3e154f53019305
tree46d1365a50eace680624072ecd00ff62c98ffe3a
parenta7010f3e1c9bdf101762b48304a63d9db2d6fa2e
Don't write/obtain errno unless sysc.err is set

This is mostly a performance optimization, but it also allows syscalls
to be executed before TLS is set up.  This helps when debugging ld.so.
tools/compilers/gcc-glibc/glibc-2.14.1-ros/sysdeps/ros/syscall.c