char *ctermid( char *s );
Returns a pointer to a string indicating the pathname for the controlling terminal.
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.
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.
Copyright © 1988-2004 OAR Corporation