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