TTYNAME.3
上传用户:jnzhq888
上传日期:2007-01-18
资源大小:51694k
文件大小:0k
- .TH TTYNAME 3
- .SH NAME
- ttyname - file descriptor to terminal device name
- .SH SYNOPSIS
- .nf
- .ft B
- #define _POSIX_SOURCE 1
- #include <unistd.h>
- char *ttyname(int fIfdfP)
- .ft P
- .fi
- .SH DESCRIPTION
- .B Ttyname
- searches through the
- .B /dev
- directory for the terminal device file that is associated with file
- descriptor
- .IR fd .
- It returns the full path name of the terminal file if found, NULL is
- returned otherwise.
- .SH "SEE ALSO"
- .BR ttyslot (3).
- .SH AUTHOR
- Kees J. Bot (kjb@cs.vu.nl)