Line | |
---|
1 | .TH TTYNAME 3
|
---|
2 | .SH NAME
|
---|
3 | ttyname \- file descriptor to terminal device name
|
---|
4 | .SH SYNOPSIS
|
---|
5 | .nf
|
---|
6 | .ft B
|
---|
7 | #define _POSIX_SOURCE 1
|
---|
8 | #include <unistd.h>
|
---|
9 |
|
---|
10 | char *ttyname(int \fIfd\fP)
|
---|
11 | .ft P
|
---|
12 | .fi
|
---|
13 | .SH DESCRIPTION
|
---|
14 | .B Ttyname
|
---|
15 | searches through the
|
---|
16 | .B /dev
|
---|
17 | directory for the terminal device file that is associated with file
|
---|
18 | descriptor
|
---|
19 | .IR fd .
|
---|
20 | It returns the full path name of the terminal file if found, NULL is
|
---|
21 | returned otherwise.
|
---|
22 | .SH "SEE ALSO"
|
---|
23 | .BR ttyslot (3).
|
---|
24 | .SH AUTHOR
|
---|
25 | Kees J. Bot (kjb@cs.vu.nl)
|
---|
26 |
|
---|
27 | .\"
|
---|
28 | .\" $PchId: ttyname.3,v 1.2 1996/04/11 06:42:17 philip Exp $
|
---|
Note:
See
TracBrowser
for help on using the repository browser.