Search Results
The ttyname_r () function is marked as part of the Thread-Safe Functions option. The following new requirements on POSIX implementations derive from alignment with the Single UNIX Specification:
Parameters ¶ file_descriptor The file descriptor, which is expected to be either a file resource or an int. An int will be assumed to be a file descriptor that can be passed directly to the underlying system call.
PROLOG top This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
Returns a string for the absolute path to the current terminal device that is open on the file descriptor file_descriptor.
The ttyname () function shall return a pointer to a string containing a null-terminated pathname of the terminal associated with file descriptor fildes.
The ttyname () function is supported only in a POSIX program. For more information, see IBM XL C/C++ for z/VM Applications with OpenExtensions Services.
string posix_ttyname ( intfd ) Returns a string for the absolute path to the current terminal device that is open on the file descriptor fd.
