ptsname man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



ptsname(3C)							   ptsname(3C)

NAME
     ptsname - get name of the slave pseudo-terminal device

SYNOPSIS
     #include <stdlib.h>

     char *ptsname(int fildes);

DESCRIPTION
     The function ptsname() returns the name of the slave pseudo-terminal
     device associated with a master pseudo-terminal device.  fildes is a file
     descriptor returned from a successful open of the master device.

RETURN VALUE
     Upon successful completion, ptsname() returns a pointer to a string
     containing the null-terminated path name of the slave device of the form
     /dev/tty[qrstuvwxyz]N, where N is an integer between 0 and 99.  This
     value points to a static data area that is overwritten by each call to
     ptsname().

     Upon failure completion, ptsname() returns NULL.  This could occur if
     fildes is an invalid file descriptor, or if the slave device name does
     not exist in the file system.

SEE ALSO
     open(2), grantpt(3C), ttyname(3C), unlockpt(3C)

									Page 1

[top]

List of man pages available for IRIX

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