RTEMS Logo

RTEMS 4.9.2 On-Line Library


Process Environment Manager ctermid - Generate Terminal Pathname

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

3.4.19: ctermid - Generate Terminal Pathname

CALLING SEQUENCE:

char *ctermid(
  char *s
);

STATUS CODES:

Returns a pointer to a string indicating the pathname for the controlling terminal.

DESCRIPTION:

This service returns the name of the terminal device associated with this process. If s is NULL, then a pointer to a static buffer is returned. Otherwise, s is assumed to have a buffer of sufficient size to contain the name of the controlling terminal.

NOTES:

By default on RTEMS systems, the controlling terminal is /dev/console. Again this implementation is of limited meaning, but it provides true and useful results which should be sufficient to ease porting applications from a full POSIX implementation to the reduced profile supported by RTEMS.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation