carta
tcgetsid(3) on Linux
The text 38cea0c21cbd, as Debian 7 (Wheezy) shipped it.
get session ID
tcgetsid(3) on Linux now