ptsname_r fails with EINVAL when passed NULL buffer; translate to ERANGE in u_ptsname_r so we grow out buffer and retry
ptsname_r fails with EINVAL when passed NULL buffer; translate to ERANGE in u_ptsname_r so we grow out buffer and retry

wahern/lunix,wahern/lunix,Redfoxmoon3/lunix,Redfoxmoon3/lunix