OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [or32/] [close.c] - Diff between revs 180 and 198

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

Rev 180 Rev 198
Line 28... Line 28...
/* This program is commented throughout in a fashion suitable for processing
/* This program is commented throughout in a fashion suitable for processing
   with Doxygen.                                                              */
   with Doxygen.                                                              */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
 
 
#include <errno.h>
#include <errno.h>
#include <unistd.h>
 
 
 
 
 
 
#undef errno
extern int  errno;
extern int  errno;
 
 
 
 
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/*!Close a file.
/*!Close a file.
Line 51... Line 51...
            errno.                                                            */
            errno.                                                            */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
int
int
_close (int   file)
_close (int   file)
{
{
  errno = (STDOUT_FILENO == file) || (STDERR_FILENO == file) ? EIO : EBADF;
  errno = EBADF;
 
 
  return -1;                    /* Always fails */
  return -1;                    /* Always fails */
 
 
}       /* _close () */
}       /* _close () */
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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