handle null arguments to legacy bsd err.h functions
[musl] / src / thread / syscall_cp.c