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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [libgloss/] [i960/] [mon-read.c] - Blame information for rev 179

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

Line No. Rev Author Line
1 148 jeremybenn
#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.