Dummy pthread functions in libc considered harmful

Samuel Thibault samuel.thibault@ens-lyon.org
Mon Aug 31 14:58:00 GMT 2015


Alexander Monakov, le Mon 31 Aug 2015 17:54:46 +0300, a écrit :
> As a result, a libc "stub" mutex must:
> 
>  - contain a full implementation for process-shared mutexes
>  - for non-shared mutexes in single-threaded processes, modify them
>    consistently with non-stub implementation (but modifications need not be
>    atomic)
> 
> Does Glibc do the former? (the bug report is about Glibc not doing the latter)

See nptl/forward.c: all Glibc does in those hooks is to return 0.

Samuel



More information about the Libc-alpha mailing list