git: ttyslot(3) - Update for unix98 ptys

Alex Hornung alexh at
Wed Sep 2 01:23:42 PDT 2009

commit bd476febe7d2b2f4a2c325c6f55b7ab980073776
Author: Alex Hornung <ahornung at>
Date:   Wed Sep 2 09:12:58 2009 +0100

    ttyslot(3) - Update for unix98 ptys
    * Update ttyslot(3) to be compatible with unix98 ptys. This fixes
      problems with logins on unix98 ptys not appearing in utmp.
    * ttyslot was calling rindex, which is invalid for unix98 pty files,
      so now we just strip "/dev/".
    Obtained-from: FreeBSD

Summary of changes:
 lib/libc/gen/ttyslot.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list