readdir_r() deprecated?
readdir_r() deprecated?
Posted Aug 9, 2016 15:26 UTC (Tue) by vapier (guest, #15768)In reply to: readdir_r() deprecated? by lsl
Parent article: The GNU C Library version 2.24 is now available
it doesn't use TLS (ignoring of course errno). thread safety is achieved by having a lock embedded in the opaque DIR structure, and then readdir grabs/releases that lock.
https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/...