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