RTEMS Logo

RTEMS 4.6.1 On-Line Library


Process Environment Manager ttyname - Determine Terminal Device Name

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

3.4.20: ttyname - Determine Terminal Device Name

CALLING SEQUENCE:

char *ttyname(
  int fd
);

STATUS CODES:

Pointer to a string containing the terminal device name or NULL is returned on any error.

DESCRIPTION:

This service returns a pointer to the pathname of the terminal device that is open on the file descriptor fd. If fd is not a valid descriptor for a terminal device, then NULL is returned.

NOTES:

This routine uses a static buffer.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation