SYNOPSIS
#include <unistd.h>
char *ttyname_r(int fildes, char *name, size_t namesize);
DESCRIPTION
The
PARAMETERS
- fildes
-
Is the file descriptor that associates with the string containing the null-terminated path name of the terminal.
- name
-
Is the buffer to receive the path name.
- namesize
-
Is the length of name.
RETURN VALUES
On success,
- EBADF
-
fildes is not a valid file descriptor.
- ENOTTY
-
fildes does not refer to a terminate device.
- ERANGE
-
The value of namesize is smaller than the length of the string to be returned, including the terminating null character.
CONFORMANCE
POSIX.1 (1996).
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.5 Documentation Build 40.