TTYNAME.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 0k
Category:

OS Develop

Development Platform:

WINDOWS

  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. char *ttyname(int fIfdfP)
  10. .ft P
  11. .fi
  12. .SH DESCRIPTION
  13. .B Ttyname
  14. searches through the
  15. .B /dev
  16. directory for the terminal device file that is associated with file
  17. descriptor
  18. .IR fd .
  19. It returns the full path name of the terminal file if found, NULL is
  20. returned otherwise.
  21. .SH "SEE ALSO"
  22. .BR ttyslot (3).
  23. .SH AUTHOR
  24. Kees J. Bot (kjb@cs.vu.nl)