Changes for 4.5.0 snapshot
[newlib-cygwin.git] / libgloss / i960 / mon-write.c
blob527037f927f1a9e75928cb1ca4cbf5fb464bbe2a
1 #include <errno.h>
3 int
4 write (int fd, const char *buf, int sz)
6 int nwritten;
7 int r = _sys_write (fd, buf, sz, &nwritten);
8 if (r != 0)
10 errno = r;
11 return -1;
13 return nwritten;