source: rtems/cpukit/libcsupport/src/ctermid.c @ c7016198

4.104.114.84.95
Last change on this file since c7016198 was c7016198, checked in by Joel Sherrill <joel.sherrill@…>, on 11/16/99 at 15:27:52

Added.

  • Property mode set to 100644
File size: 609 bytes
Line 
1/*
2 *  ctermid() - POSIX 1003.1b 4.7.1 - Generate Terminal Pathname
3 *
4 *  COPYRIGHT (c) 1989-1998.
5 *  On-Line Applications Research Corporation (OAR).
6 *  Copyright assigned to U.S. Government, 1994.
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#include <rtems.h>
16#if defined(RTEMS_NEWLIB)
17
18#include <stdio.h>
19
20static ctermid_name = "/dev/console";
21
22char *ctermid(
23  char *s
24)
25{
26  if ( !s )
27    return ctermid_name;
28
29  strcpy( s, ctermid_name );
30  return s;
31}
32
33#endif
Note: See TracBrowser for help on using the repository browser.