DragonFly- master lib/libc/gen getttyent.3 getttyent.c

Peter Avalos pavalos at crater.dragonflybsd.org
Tue Apr 7 00:13:41 PDT 2009

commit 2bc1b80efa277c2f31799d39a0f35e70060d63dc
Author: Peter Avalos <pavalos at theshell.com>
Date:   Sat Mar 14 15:40:26 2009 -1000

    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()
    * 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.

Summary of changes:
 lib/libc/gen/getttyent.3 |   13 +++++--------
 lib/libc/gen/getttyent.c |   11 ++++++-----
 2 files changed, 11 insertions(+), 13 deletions(-)


DragonFly BSD source repository

More information about the Commits mailing list