source: rtems/cpukit/libcsupport/src/isatty_r.c @ 346725cc

4.104.115
Last change on this file since 346725cc was 346725cc, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/30/09 at 08:20:32

Rework autoconf defines.

  • Property mode set to 100644
File size: 613 bytes
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
27int _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.