]> Zhao Yanbai Git Server - minix.git/commit
libc: make ttyname(3) use devname(3)
authorDavid van Moolenbroek <david@minix3.org>
Sun, 24 Nov 2013 20:50:44 +0000 (21:50 +0100)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:53 +0000 (17:05 +0200)
commit69cba46141faec19a7832fd10efdce3ec055e2bc
treeb7264d845539de187e0e57f965f204d00737402d
parentfcce231cb7d40edd4f1411faf4d88748dd28a87e
libc: make ttyname(3) use devname(3)

There was an off-by-one in the old MINIX-specific implementation,
which caused ttyname(3) to fail at random. Since we now have a working
devname(3), there is no need for MINIX-specific code anymore here.

Change-Id: I27d8b6c4f66c84f383156ed494b740d071af02a7
lib/libc/gen/ttyname.c