72 lines
957 B
HTML
72 lines
957 B
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>ttyname(3)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>ttyname(3)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
ttyname - file descriptor to terminal device name
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>#define</STRONG> <STRONG>_POSIX_SOURCE</STRONG> <STRONG>1</STRONG>
|
|
<STRONG>#include</STRONG> <STRONG><unistd.h></STRONG>
|
|
|
|
<STRONG>char</STRONG> <STRONG>*ttyname(int</STRONG> <EM>fd</EM><STRONG>)</STRONG>
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
<STRONG>Ttyname</STRONG> searches through the <STRONG>/dev</STRONG> directory for the terminal device file
|
|
that is associated with file descriptor <EM>fd</EM>. It returns the full path
|
|
name of the terminal file if found, NULL is returned otherwise.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man3/ttyslot.3.html">ttyslot(3)</A></STRONG>.
|
|
|
|
|
|
</PRE>
|
|
<H2>AUTHOR</H2><PRE>
|
|
Kees J. Bot (kjb@cs.vu.nl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|