source: trunk/libs/newlib/src/libgloss/i960/mon-read.c @ 479

Last change on this file since 479 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 223 bytes
Line 
1#include <errno.h>
2
3read (fd, buf, sz)
4     int fd;
5     char *buf;
6     int sz;
7{
8  int nread;
9  int r;
10
11  r = _sys_read (fd, buf, sz, &nread);
12  if (r != 0)
13    {
14      errno = r;
15      return -1;
16    }
17  return nread;
18}
Note: See TracBrowser for help on using the repository browser.