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

syswrite.c « syscalls « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0899759583b7826fc2c88d945e100f0bbfe3149f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* connector for write */

#include <reent.h>
#include <unistd.h>

_READ_WRITE_RETURN_TYPE
_DEFUN (write, (fd, buf, cnt),
     int fd _AND
     const void *buf _AND
     size_t cnt)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _write_r (_REENT, fd, buf, cnt);
#else
  return _write (fd, buf, cnt);
#endif
}