add libc building to agbcc.

This commit is contained in:
ProjectRevoTPP
2017-12-20 16:34:35 -05:00
parent f49e7cbb33
commit 48ef7704c0
306 changed files with 32781 additions and 0 deletions

17
libc/syscalls/syswrite.c Normal file
View File

@@ -0,0 +1,17 @@
/* connector for write */
#include <reent.h>
#include <unistd.h>
int
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
}