Sync ttyname with FreeBSD:
authorPeter Avalos <pavalos@theshell.com>
Mon, 16 Mar 2009 02:56:50 +0000 (16:56 -1000)
committerPeter Avalos <pavalos@theshell.com>
Tue, 7 Apr 2009 07:10:04 +0000 (21:10 -1000)
commit23636137a4047460c448493bba811cb2e0d854ce
treee56a5a789ae6715f1fe1c3f3809278d2788468ed
parent73266881ff3b5f5cecf1f57b155fc16566adff9e
Sync ttyname with FreeBSD:

* SuS says ttyname_r should return an int, so do that.

* Use devname(3) instead of rolling our own code.

* Simplify the threaded/unthreaded stuff.
include/unistd.h
lib/libc/gen/ttyname.3
lib/libc/gen/ttyname.c
lib/libc_r/uthread/pthread_private.h