Luna/libs/libc
apio b67011c626 libc: Use the new write() syscall
The new one is write(fd, buf, count).
The old one was write(buf, count).

So the old one tries to pass buf as a file descriptor, and write() complains that 4000000 is too large of a file descriptor and throws EBADF.

We now use the new syscall, through the wrapper that fwrite() provides us.
2022-10-11 21:12:19 +02:00
..
include libc: make stdout and stderr functional 2022-10-11 21:08:46 +02:00
src libc: Use the new write() syscall 2022-10-11 21:12:19 +02:00
crt0.asm libc: make stdout and stderr functional 2022-10-11 21:08:46 +02:00
crti.asm WIP: Add a C Library, let's try to compile a Hosted GCC cross-compiler using this! 2022-10-01 20:59:22 +02:00
crtn.asm WIP: Add a C Library, let's try to compile a Hosted GCC cross-compiler using this! 2022-10-01 20:59:22 +02:00
Makefile libc: Enable even more warnings 2022-10-07 18:19:06 +02:00