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