*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> ptsname (3c)              
Title
Content
Arch
Section
 

Contents


ptsname(3C)							   ptsname(3C)


NAME    [Toc]    [Back]

     ptsname - get name	of the slave pseudo-terminal device

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     char *ptsname(int fildes);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     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    [Toc]    [Back]

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


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
grantpt IRIX grant access to the slave pseudo-terminal device
pts HP-UX STREAMS slave pty (pseudo-terminal) driver
unlockpt IRIX unlock a pseudo-terminal master/slave pair
utx Tru64 UNIX terminal extension pseudo device
telm HP-UX STREAMS Telnet slave (pseudo-terminal) driver, STREAMS Telnet master driver (used by telnetd only), respective
tels HP-UX STREAMS Telnet slave (pseudo-terminal) driver, STREAMS Telnet master driver (used by telnetd only), respective
ptsname Tru64 Get the name of a slave pseudoterminal device
ptsname_r Tru64 Get the name of a slave pseudoterminal device
grantpt Tru64 Permit access to the slave pseudoterminal device
pty OpenBSD pseudo terminal driver
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service