Syntax | #include <unistd.h> int ttyname_r(int fildes, char * name, size_t namesize); |
Description
The function ttyname_r()
stores the null-terminated pathname of the terminal associated
with file descriptor fildes in the data area pointed to by name. The data area is namesize | ||
Return val. | 0 Otherwise the error number. | |
Errors |
| |
| fildes is not a valid file descriptor. fildes does not point to a terminal. the value of namesize is smaller than the length of the string returned including | |
See also |
|