Return the name of the slave pseudo-terminal device. fd File descriptor of a master pseudo-terminal device. If the ptsname_r() C function is available, it is called; otherwise, performs a ptsname() C function call.
os/ptsname
ptsname