source: rtems/cpukit/libcsupport/src/isatty_r.c @ 9e14ca2

4.104.115
Last change on this file since 9e14ca2 was 9e14ca2, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/15/09 at 09:29:55

Add attribute((unused)) to function arguments.

  • Property mode set to 100644
File size: 585 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 __attribute__((unused)),
29  int            fd
30)
31{
32  return isatty( fd );
33}
34#endif
Note: See TracBrowser for help on using the repository browser.