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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [libgloss/] [i960/] [mon-write.c] - Blame information for rev 301

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

Line No. Rev Author Line
1 207 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.