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

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 621 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
10#if HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14/*
15 *  _isatty_r
16 *
17 *  This is the Newlib dependent reentrant version of isatty().
18 */
19
20#if defined(RTEMS_NEWLIB) && !defined(HAVE__ISATTY_R)
21
22#include <unistd.h>
23#include <reent.h>
24#include <sys/stat.h>
25
26int _isatty_r(
27  struct _reent *ptr __attribute__((unused)),
28  int            fd
29)
30{
31  return isatty( fd );
32}
33#endif
Note: See TracBrowser for help on using the repository browser.