mirror of
https://github.com/pret/agbcc.git
synced 2026-10-24 09:02:46 -05:00
add libc building to agbcc.
This commit is contained in:
17
libc/syscalls/syswrite.c
Normal file
17
libc/syscalls/syswrite.c
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user