summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-10-01 12:19:48 +0000
committered <ed@FreeBSD.org>2011-10-01 12:19:48 +0000
commitf735840b56c7aedac86f9e8be7d1f9cb33ad623e (patch)
tree54a94fa70773521ce63df099697baa0bfee0b439 /sys/sparc64
parent71b9169fe9444b8207262f62c1b9396dfdbf3693 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud