2000-02-18 03:39:52 +08:00
|
|
|
/* connector for write */
|
|
|
|
|
|
|
|
#include <reent.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2001-03-06 09:04:43 +08:00
|
|
|
_READ_WRITE_RETURN_TYPE
|
2000-02-18 03:39:52 +08:00
|
|
|
write (fd, buf, cnt)
|
|
|
|
int fd;
|
|
|
|
const void *buf;
|
|
|
|
size_t cnt;
|
|
|
|
{
|
|
|
|
#ifdef REENTRANT_SYSCALLS_PROVIDED
|
|
|
|
return _write_r (_REENT, fd, buf, cnt);
|
|
|
|
#else
|
|
|
|
return _write (fd, buf, cnt);
|
|
|
|
#endif
|
|
|
|
}
|