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

Last change on this file since 546 was 444, checked in by satin@…, 6 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.