The text f501595e48ee, as FreeBSD 2.0.5-RELEASE shipped it.
get foreground process group ID
tcgetpgrp(3) on FreeBSD now