TTYNAME.3
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- TTYNAME(3) Minix Programmer's Manual TTYNAME(3)
- NAME
- ttyname - file descriptor to terminal device name
- SYNOPSIS
- #define _POSIX_SOURCE 1
- #include <unistd.h>
- char *ttyname(int fd)
- DESCRIPTION
- Ttyname searches through the /dev directory for the terminal device file
- that is associated with file descriptor fd. It returns the full path
- name of the terminal file if found, NULL is returned otherwise.
- SEE ALSO
- ttyslot(3).
- AUTHOR
- Kees J. Bot (kjb@cs.vu.nl)
- 1