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

Subversion Repositories or1k

[/] [or1k/] [branches/] [newlib/] [newlib/] [libgloss/] [i960/] [mon-write.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
int
4
write (int fd, const char *buf, int sz)
5
{
6
  int nwritten;
7
  int r = _sys_write (fd, buf, sz, &nwritten);
8
  if (r != 0)
9
    {
10
      errno = r;
11
      return -1;
12
    }
13
  return nwritten;
14
}

powered by: WebSVN 2.1.0

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