musl/src/internal
Rich Felker ac31bf278d simplify errno implementation
the motivation for the errno_ptr field in the thread structure, which
this commit removes, was to allow the main thread's errno to keep its
address when lazy thread pointer initialization was used. &errno was
evaluated prior to setting up the thread pointer and stored in
errno_ptr for the main thread; subsequently created threads would have
errno_ptr pointing to their own errno_val in the thread structure.

since lazy initialization was removed, there is no need for this extra
level of indirection; __errno_location can simply return the address
of the thread's errno_val directly. this does cause &errno to change,
but the change happens before entry to application code, and thus is
not observable.
2014-06-10 04:49:49 -04:00
..
2011-09-18 16:44:54 -04:00
2012-09-29 01:05:31 -04:00
2012-09-09 14:53:06 -04:00
2014-02-23 11:07:18 +01:00
2012-11-08 16:39:41 -05:00
2011-08-02 21:11:36 -04:00
2012-11-08 16:39:41 -05:00
2013-09-06 18:35:55 +00:00
2014-06-10 04:49:49 -04:00
2011-03-19 18:51:42 -04:00