Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mon-write.c « i960 « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 527037f927f1a9e75928cb1ca4cbf5fb464bbe2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <errno.h>

int
write (int fd, const char *buf, int sz)
{
  int nwritten;
  int r = _sys_write (fd, buf, sz, &nwritten);
  if (r != 0)
    {
      errno = r;
      return -1;
    }
  return nwritten;
}