getttyent(3) fixes from FreeBSD:
authorPeter Avalos <pavalos@theshell.com>
Sun, 15 Mar 2009 01:40:26 +0000 (15:40 -1000)
committerPeter Avalos <pavalos@theshell.com>
Tue, 7 Apr 2009 07:09:39 +0000 (21:09 -1000)
commit2bc1b80efa277c2f31799d39a0f35e70060d63dc
treeee8c16a83bac8af86da8ee1bcde612e2e32e88f4
parentebdfa5793d78183d795e9af345338f9f265f1df0
getttyent(3) fixes from FreeBSD:

* In getttyent(3), if /etc/ttys doesn't end in a newline, don't
freak out and keep trying to expand the buffer until realloc()
fails.

* Move initialization above point of first possible reference to
avoid overwriting ty_status values set from the 'type' field.

* Fix the NAME section making whatis(1) happy in particular.
lib/libc/gen/getttyent.3
lib/libc/gen/getttyent.c