If you intend your port's ABI to be single-threaded only and stay that way forever, then you should make it export errno (i.e. don't use sysdeps/generic/errno.c, or change it to test _LIBC_REENTRANT or something). Otherwise, you should make __errno_location and the errno macro in bits/errno.h consistent with the existing GNU platforms.