Thread safety issues
We use several (possible) thread unsafe functions in
libwget/ (nl_langinfo, strerror, getenv, getuid). We should move those outside the library, remove or replace them appropriately.
Also should we check such usage in
src/ and move them outside the threaded code.
readdir is thread-safe in glibc (at least in the way we use it).
There is a script attached to check for unsafe functions. For more details: https://blog.josefsson.org/2009/06/23/thread-safe-functions/