pthread_getaffinity_np issue

John Baldwin jhb at freebsd.org
Fri Sep 25 16:50:50 UTC 2015


On Thursday, September 24, 2015 10:26:23 PM Konstantin Belousov wrote:
> So your issue only appears when you specify _XOPEN_SOURCE.  This is reasonable,
> because __bitcount stuff in sys/types.h was put under _BSD_VISIBLE protection.
> I am not sure why and I Cc:ed the author of the change.
> 
> IMO all symbols from __bitcount* are in the private namespace and could
> be made unconditionally accessible, to avoid surprises.  I put the patch
> at the end of the message which does this.

It was not on purpose, more to put it in the section with other "doodads".
If it is safe to move out from under BSD_VISIBLE then your patch is fine
with me.  The only person I can think to ask would be bde@, but my guess
is your change is correct.

-- 
John Baldwin


More information about the freebsd-threads mailing list