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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [libgloss/] [i960/] [mon-write.c] - Blame information for rev 862

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

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