source: trunk/libs/newlib/src/libgloss/i960/mon-write.c @ 477

Last change on this file since 477 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 210 bytes
Line 
1#include <errno.h>
2
3int
4write (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}
Note: See TracBrowser for help on using the repository browser.