URL
https://opencores.org/ocsvn/or1k/or1k/trunk
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
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.