diff options
author | ed <ed@FreeBSD.org> | 2011-10-01 12:19:48 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-10-01 12:19:48 +0000 |
commit | f735840b56c7aedac86f9e8be7d1f9cb33ad623e (patch) | |
tree | 54a94fa70773521ce63df099697baa0bfee0b439 /sys/sparc64 | |
parent | 71b9169fe9444b8207262f62c1b9396dfdbf3693 (diff) | |
download | FreeBSD-src-f735840b56c7aedac86f9e8be7d1f9cb33ad623e.zip FreeBSD-src-f735840b56c7aedac86f9e8be7d1f9cb33ad623e.tar.gz |
Reimplement ctermid().
Even though POSIX allows us to return simply /dev/tty as a pathname
identifying the controlling terminal of the running process, it is nicer
if this function were actually useful, by returning the actual pathname
of the controlling terminal.
Implement ctermid() by using the kern.devname sysctl to resolve the
actual name of /dev/tty. Don't use devname(3), since it may return bogus
strings like #C:0x123.
Diffstat (limited to 'sys/sparc64')
0 files changed, 0 insertions, 0 deletions