Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mon-read.c « i960 « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 92e15d258c24faef2a9efd39c331b109bbdf45de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <errno.h>

read (fd, buf, sz)
     int fd;
     char *buf;
     int sz;
{
  int nread;
  int r;

  r = _sys_read (fd, buf, sz, &nread);
  if (r != 0)
    {
      errno = r;
      return -1;
    }
  return nread;
}