4.104.115
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2009. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | /* |
---|
17 | * _isatty_r |
---|
18 | * |
---|
19 | * This is the Newlib dependent reentrant version of isatty(). |
---|
20 | */ |
---|
21 | |
---|
22 | #if defined(RTEMS_NEWLIB) && !defined(HAVE__ISATTY_R) |
---|
23 | |
---|
24 | #include <reent.h> |
---|
25 | #include <sys/stat.h> |
---|
26 | |
---|
27 | int _isatty_r( |
---|
28 | struct _reent *ptr __attribute__((unused)), |
---|
29 | int fd |
---|
30 | ) |
---|
31 | { |
---|
32 | return isatty( fd ); |
---|
33 | } |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.