This repository has been archived on 2025-02-12. You can view files and clone it, but cannot push or open issues or pull requests.
pic32-newlib/newlib/libgloss/i960/mon-read.c
2009-02-02 03:03:19 +00:00

18 lines
223 B
C

#include <errno.h>
read (fd, buf, sz)
int fd;
char *buf;
int sz;
{
int nread;
int r;
r = _sys_read (fd, buf, sz, &nread);
if (r != 0)
{
errno = r;
return -1;
}
return nread;
}