4.104.114.84.95
Rev | Line | |
---|
[c7016198] | 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 | |
---|
| 20 | static ctermid_name = "/dev/console"; |
---|
| 21 | |
---|
| 22 | char *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.