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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [syscalls/] [sysfcntl.c] - Diff between revs 207 and 345

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 345
/* connector for fcntl */
/* connector for fcntl */
/* only called from stdio/fdopen.c, so arg can be int. */
/* only called from stdio/fdopen.c, so arg can be int. */
 
 
#include <reent.h>
#include <reent.h>
#include <errno.h>
#include <errno.h>
 
 
int
int
_DEFUN (fcntl, (fd, flag, arg),
_DEFUN (fcntl, (fd, flag, arg),
     int fd _AND
     int fd _AND
     int flag _AND
     int flag _AND
     int arg)
     int arg)
{
{
#ifdef HAVE_FCNTL
#ifdef HAVE_FCNTL
  return _fcntl_r (_REENT, fd, flag, arg);
  return _fcntl_r (_REENT, fd, flag, arg);
#else /* !HAVE_FCNTL */
#else /* !HAVE_FCNTL */
  errno = ENOSYS;
  errno = ENOSYS;
  return -1;
  return -1;
#endif /* !HAVE_FCNTL */
#endif /* !HAVE_FCNTL */
}
}
 
 

powered by: WebSVN 2.1.0

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