Errno must not be touched before TCB is initialized.
authorDavid Zhu <yuzhu@cs.berkeley.edu>
Tue, 23 Nov 2010 07:06:07 +0000 (23:06 -0800)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:57 +0000 (17:35 -0700)
commit84f2a33180a58504a78d6c84d33908c5a1f39192
tree679c33c2be94485a87d0845674118a4925e95401
parentc7d227ff5c1da2d304fd8a63f2bfe43065dcd4a1
Errno must not be touched before TCB is initialized.

Now making sbrk ignore errno in libc.
The alternative is to replicate the logic of sbrk for this particular
call of sbrk, which is even uglier.

Also added some documentation on errno, probably need more docs on TLS.
Documentation/glibc.txt
tools/compilers/gcc-glibc/glibc-2.11.1-ros/sysdeps/ros/sbrk.c