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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [syscalls/] [sysread.c] - Diff between revs 1010 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 1010 Rev 1765
/* connector for read */
/* connector for read */
 
 
#include <reent.h>
#include <reent.h>
#include <unistd.h>
#include <unistd.h>
 
 
_READ_WRITE_RETURN_TYPE
_READ_WRITE_RETURN_TYPE
read (fd, buf, cnt)
read (fd, buf, cnt)
     int fd;
     int fd;
     void *buf;
     void *buf;
     size_t cnt;
     size_t cnt;
{
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _read_r (_REENT, fd, buf, cnt);
  return _read_r (_REENT, fd, buf, cnt);
#else
#else
  return _read (fd, buf, cnt);
  return _read (fd, buf, cnt);
#endif
#endif
}
}
 
 

powered by: WebSVN 2.1.0

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