MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/9vira/djb/c0eo989/?context=3
r/programming • u/jeanlucpikachu • Oct 19 '09
129 comments sorted by
View all comments
Show parent comment
2
The easy way is to implement __errno_location() so that it initially returns &errno but when a thread is created, have it return the address in the thread state pointer.
__errno_location()
&errno
View all comments
Show parent comment
2
u/geocar Oct 20 '09
The easy way is to implement
__errno_location()so that it initially returns&errnobut when a thread is created, have it return the address in the thread state pointer.