The text 5bc79b3c59bb, as FreeBSD 9.0-RELEASE shipped it.
auxiliary functions to obtain a pseudo-terminal
pty(3) on FreeBSD now