newlib-cygwin/newlib/libc/syscalls/syswrite.c

18 lines
308 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
/* 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)
2000-02-18 03:39:52 +08:00
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _write_r (_REENT, fd, buf, cnt);
#else
return _write (fd, buf, cnt);
#endif
}