ttyname man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

ttyname(3C)							   ttyname(3C)

NAME
       ttyname(), ttyname_r(), isatty() - find name of a terminal

SYNOPSIS
DESCRIPTION
       returns	a pointer to a string containing the null-terminated path name
       of the terminal device associated with file descriptor fildes.

       returns 1 if fildes is associated with a terminal device, 0 otherwise.

   Reentrant Interfaces
       returns the result string in the supplied buffer. The buffer is	buflen
       characters  long and should have space for the name and the terminating
       null character. The maximum length of the terminal name is

RETURN VALUE
       returns a NULL pointer if fildes does not describe a terminal device in
       directory returns a zero upon success and an error number upon failure.

ERRORS
       and fail if any of the following conditions are encountered:

	      The		  fildes argument is invalid.

	      An inappropriate	  I/O control operation has been attempted.

APPLICATION USAGE
       The return value for points to static data whose content is overwritten
       by each call.

WARNINGS
       For streams ptys, and do not consider master ptys to  be	 tty  devices.
       It  should  also be noted that returns a pointer to the master pty name
       for all master pty devices.  This is a result  of  device  files	 being
       linked together.

       Users  of  should  also	note  that  the prototype of this function has
       changed in this release for conformance with the POSIX.1c Threads stan‐
       dard.   The old prototype of is supported for compatibility with exist‐
       ing DCE applications only.

FILES
SEE ALSO
       thread_safety(5).

STANDARDS CONFORMANCE
								   ttyname(3C)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net