fix ptsname_r to conform to the upcoming posix requirements
[musl] / src / internal / syscall.c