source: rtems/cpukit/libcsupport/src/isatty_r.c @ 03e3f92a

4.104.115
Last change on this file since 03e3f92a was 03e3f92a, checked in by Joel Sherrill <joel.sherrill@…>, on 05/06/09 at 15:27:55

2009-05-06 Joel Sherrill <joel.sherrill@…>

  • libcsupport/Makefile.am:
  • libcsupport/src/isatty_r.c: New file.
  • Property mode set to 100644
File size: 561 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)
23
24#include <reent.h>
25#include <sys/stat.h>
26
27int _isatty_r(
28  struct _reent *ptr,
29  int            fd
30)
31{
32  return isatty( fd );
33}
34#endif
Note: See TracBrowser for help on using the repository browser.