carta

ctermid(3) on Linux

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

get controlling terminal name

ctermid(3) on Linux now