The text d6e4dfafece6, as FreeBSD 8.1-RELEASE shipped it.
get session ID associated with a controlling terminal
tcgetsid(3) on FreeBSD now