This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Find an available pseudo-tty
#include <unix.h> int openpty( int* amaster, int* aslave, char* name, struct termios* termp, struct winsize* winp );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
This function is in libc.a, but not in libc.so (in order to save space). |
The openpty() function finds and opens an available pseudo-tty.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
fork(), forkpty(), login_tty(), termios