|
|
1.1 ! root 1: ! 2: ! 3: ttyname() General Function ttyname() ! 4: ! 5: ! 6: ! 7: ! 8: Identify a terminal ! 9: ! 10: cchhaarr *ttttyynnaammee(_f_d) ! 11: iinntt _f_d; ! 12: ! 13: Given a file descriptor fd attached to a terminal, ttyname ! 14: returns the complete pathname of the special file (normally found ! 15: in the directory /dev). ! 16: ! 17: ***** Files ***** ! 18: ! 19: /ddeevv/* -- Terminal special files ! 20: /eettcc/ttttyyss -- Login terminals ! 21: ! 22: ***** See Also ***** ! 23: ! 24: general functions, ioctl(), isatty(), tty(), ttyslot() ! 25: ! 26: ***** Diagnostics ***** ! 27: ! 28: ttyname returns NULL if it cannot find a special file correspon- ! 29: ding to fd. ! 30: ! 31: ***** Notes ***** ! 32: ! 33: The string returned by ttyname kept in a static area, and is ! 34: overwritten by each subsequent call. ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.