From c7016198fa34f63e0dd2c8f68443ce2a4170fd79 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Nov 1999 15:27:52 +0000 Subject: Added. --- c/src/exec/libcsupport/src/ctermid.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 c/src/exec/libcsupport/src/ctermid.c (limited to 'c/src/exec/libcsupport/src/ctermid.c') diff --git a/c/src/exec/libcsupport/src/ctermid.c b/c/src/exec/libcsupport/src/ctermid.c new file mode 100644 index 0000000000..23308dc4a6 --- /dev/null +++ b/c/src/exec/libcsupport/src/ctermid.c @@ -0,0 +1,33 @@ +/* + * ctermid() - POSIX 1003.1b 4.7.1 - Generate Terminal Pathname + * + * COPYRIGHT (c) 1989-1998. + * On-Line Applications Research Corporation (OAR). + * Copyright assigned to U.S. Government, 1994. + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.OARcorp.com/rtems/license.html. + * + * $Id$ + */ + +#include +#if defined(RTEMS_NEWLIB) + +#include + +static ctermid_name = "/dev/console"; + +char *ctermid( + char *s +) +{ + if ( !s ) + return ctermid_name; + + strcpy( s, ctermid_name ); + return s; +} + +#endif -- cgit v1.2.3