https://bugs.kde.org/show_bug.cgi?id=433477

--- Comment #5 from Paul Floyd <pjfl...@wanadoo.fr> ---
For the PTH_FUNC and LIBC_FUNC, it's all a fairly big mess.

On Soilaris, libpthread contains stubs and the real implementations are in
libc. Nothing much works on macOS.

On Linux glibc, functions seem to be fairly randomly in either libc or
libpthread or both. For muslc there is no lib libpthread and everything is in
libc.

On FreeBSD the pthread functions have stubs in libc but the implementation is
in libpthread. The exception is the semaphore functions which are only in libc.

As a rule it is safe to have multiple filenames and patterns for these redirs,
as long as a match is made and not to the stub. The duplicates will then do
nothing.

When there is a stub we mustn't look for them - which is why Solaris only looks
in libc and FreeBSD only looks in libpthread for PTH_FUNC.

I don't know of any way to achieve this with macros, or at least not in a way
that is not worse than the current code.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to