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

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

Contents


unlockpt(3C)							  unlockpt(3C)


NAME    [Toc]    [Back]

     unlockpt -	unlock a pseudo-terminal master/slave pair

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     int unlockpt(int fildes);

DESCRIPTION    [Toc]    [Back]

     The function unlockpt() clears a lock flag	associated with	the slave
     pseudo-terminal device associated with its	master pseudo-terminal
     counterpart so that the slave pseudo-terminal device can be opened.
     fildes is a file descriptor returned from a successful open of a master
     pseudo-terminal device.

RETURN VALUE    [Toc]    [Back]

     Upon successful completion, the function unlockpt() returns 0; otherwise
     it	returns	-1. A failure may occur	if fildes is not an open file
     descriptor	or is not associated with a master pseudo-terminal device.

SEE ALSO    [Toc]    [Back]

      
      
     open(2), grantpt(3C), ptsname(3C)


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
unlockpt Tru64 Unlock a pseudoterminal master and slave pair
tels HP-UX STREAMS Telnet slave (pseudo-terminal) driver, STREAMS Telnet master driver (used by telnetd only), respective
telm HP-UX STREAMS Telnet slave (pseudo-terminal) driver, STREAMS Telnet master driver (used by telnetd only), respective
ptsname IRIX get name of the slave pseudo-terminal device
pts HP-UX STREAMS slave pty (pseudo-terminal) driver
grantpt IRIX grant access to the slave pseudo-terminal device
ptm HP-UX STREAMS master pty (pseudo-terminal) driver
ypinit OpenBSD create a YP server (master or slave)
pty Tru64 Pseudo terminal driver
pty OpenBSD pseudo terminal driver
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service