Fixes compile failure if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES defined
[newlib-cygwin.git] / libgloss / i960 / mon-read.c
blob92e15d258c24faef2a9efd39c331b109bbdf45de
1 #include <errno.h>
3 read (fd, buf, sz)
4 int fd;
5 char *buf;
6 int sz;
8 int nread;
9 int r;
11 r = _sys_read (fd, buf, sz, &nread);
12 if (r != 0)
14 errno = r;
15 return -1;
17 return nread;