OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [or32/] [isatty.c] - Diff between revs 207 and 507

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 207 Rev 507
Line 30... Line 30...
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
 
 
#include <errno.h>
#include <errno.h>
#include <unistd.h>
#include <unistd.h>
 
 
 
#include "or1k-support.h"
 
 
#undef ERRNO
#undef ERRNO
extern int  errno;
extern int  errno;
 
 
 
 
Line 52... Line 53...
            variable errno.                                                   */
            variable errno.                                                   */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
int
int
_isatty (int   file)
_isatty (int   file)
{
{
  if ((file == STDIN_FILENO)  ||
  if ((BOARD_HAS_UART && (file == STDIN_FILENO))  ||
      (file == STDOUT_FILENO) ||
      (file == STDOUT_FILENO) ||
      (file == STDERR_FILENO))
      (file == STDERR_FILENO))
    {
    {
      return  1;
      return  1;
    }
    }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.