OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [newlib/] [newlib/] [libgloss/] [i960/] [mon-read.c] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
#include <errno.h>
2
 
3
read (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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.