Add user helpers save_err and restore_err (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 11 Apr 2016 20:53:37 +0000 (16:53 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 15 Apr 2016 14:29:13 +0000 (10:29 -0400)
commitfbc8bfe4beb990d29870101fe33fc7b7c797bde2
tree6a4b0a8175798d0183d8904d2f4da11d0ecde203
parent278b6158d6fdba2b6334cb0f9ebb9b304b94e9e8
Add user helpers save_err and restore_err (XCC)

These save and restore errno and errstr.  Programs will want to use these
when they need to perform syscalls and want to preserve the original error.
Normally this is easy with errno, but you should save/restore errstr too.

Rebuild glibc.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/Versions
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/bits/errno.h
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/errno.c