carta
tcgetsid(3) on Linux
The text d51083ef7c0c, as Debian 5.0 (Lenny) shipped it.
get session ID
tcgetsid(3) on Linux now