edelib 2.0.0
Public Member Functions

PTY Class Reference

emulate pty api More...

#include </usr/src/RPM/BUILD/edelib-2.0/edelib/Pty.h>

List of all members.

Public Member Functions

 PTY ()
 ~PTY ()
int getpt ()
int grantpt ()
int unlockpt ()
const char * ptsname ()

Detailed Description

emulate pty api

PTY compatibility routines. This class tries to emulate a UNIX98 PTY API on various platforms.


Constructor & Destructor Documentation

PTY ( )

Construct a PTY object

~PTY ( )

Destructs the object. The PTY is closed if it is still open


Member Function Documentation

int getpt ( )

Allocate a pty

Returns:
A filedescriptor to the master side
int grantpt ( )

Grant access to the slave side

Returns:
zero if succesfull, < 0 otherwise
const char* ptsname ( )

Return the slave side name

int unlockpt ( )

Unlock the pty. This allows connections on the slave side.

Returns:
Zero if successful, < 0 otherwise

The documentation for this class was generated from the following file: