Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of TTYNAME

TTYNAME

Section: Linux Programmer's Manual (3)
Updated: April 20, 2025
Index  

NAME

ttyname - return name of a terminal  

SYNOPSIS

#include <unistd.h>
char *ttyname ( int desc );
 

DESCRIPTION

Returns a pointer to the pathname of the terminal device that is open on the file descriptor desc, or NULL on error (for example, if desc is not connected to a terminal).  

CONFORMING TO

POSIX.1  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:58:07 GMT, March 24, 2025

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat