carta

ttyname(3) on Linux

The text bac9cf51042b, as Debian 4.0 (Etch) shipped it.

return name of a terminal

ttyname(3) on Linux now