carta
getsid(2) on Linux
The text bdd6d90ae473, as Debian 13 (Trixie) shipped it.
get session ID
getsid(2) on Linux now