Updated: April 19, 2023 |
Get the name of a slave pseudo-terminal device
#include <stdlib.h> char *ptsname_r( int filedes, char *buffer, size_t buflen );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The ptsname_r() function gets the name of the slave pseudo-terminal device associated with a master pseudo-terminal device. It's a reentrant version of ptsname().
A pointer to a NUL-terminated string containing the pathname of the corresponding slave device, or NULL if an error occurred (in QNX Neutrino 7.1 or later, errno is set).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |