There is a lot of function like pthread_<...>_np(). But such function are not portable and not Unix-compliant.
Also Ubuntu have a "FreeBSD glue" package and etc.
According to answers on StackOverflow and googling it is seems that above reinterpret casts is solution in a uniform way on Linux and BSD.
On Debian and GCC 4.9 all tests are green.
Also Ubuntu have a "FreeBSD glue" package and etc.
According to answers on StackOverflow and googling it is seems that above reinterpret casts is solution in a uniform way on Linux and BSD.
On Debian and GCC 4.9 all tests are green.