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

  man pages->Tru64 Unix man pages -> unlockpt (3)              
Title
Content
Arch
Section
 

unlockpt(3)

Contents


NAME    [Toc]    [Back]

       unlockpt - Unlock a pseudoterminal master and slave pair

SYNOPSIS    [Toc]    [Back]

       #include <stdlib.h>

       int unlockpt(
               int mastfd );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces  documented  on  this reference page conform to
       industry standards as follows:

       unlockpt(): XSH5.0

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Specifies  a  file descriptor that is returned from a successful
 open of the master pseudoterminal device.

DESCRIPTION    [Toc]    [Back]

       The unlockpt() function  unlocks  a  slave  pseudoterminal
       from  its  associated  master counterpart. It does this by
       clearing a lock option so that the  slave  device  can  be
       opened.

ERRORS    [Toc]    [Back]

       The unlockpt() function sets errno to the specified values
       for the following conditions:

       The file descriptor specified by the mastfd  parameter  is
       not  an  open file descriptor.  The file descriptor specified
 by the mastfd parameter is not associated with a master
 pseudoterminal device.

RETURN VALUE    [Toc]    [Back]

       Upon   successful   completion,  the  unlockpt()  function
       returns a value of 0. Otherwise, it returns a value of  -1
       and sets errno to indicate the error.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: openpty(3)

       Standards: standards(5)



                                                      unlockpt(3)
[ Back ]
 Similar pages
Name OS Title
unlockpt IRIX unlock a pseudo-terminal master/slave pair
ptsname_r Tru64 Get the name of a slave pseudoterminal device
ptsname Tru64 Get the name of a slave pseudoterminal device
grantpt Tru64 Permit access to the slave pseudoterminal device
ypinit OpenBSD create a YP server (master or slave)
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
ptem Tru64 Null STREAMS module for pseudoterminal emulation
timeslave IRIX 'slave' local clock to a better one
ptsname IRIX get name of the slave pseudo-terminal device
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service