use __attribute__((const)) for errno and pthread_self if __GNUC__ is defined
[musl] / arch /
drwxr-xr-x   ..
drwxr-xr-x - i386
drwxr-xr-x - x86_64