Luna/libs/libc/src
apio 743aedcd49 libc: Implement atexit() and _exit()
exit() now calls registered handlers before calling _exit().

And initialize_libc() can now register a handler to close stdout and stderr on program termination!! :)
2022-10-12 20:41:55 +02:00
..
bits Define PAGE_SIZE as 4096 and use it everywhere instead of using 4096 as a magic number 2022-10-08 14:52:28 +02:00
luna libc: Enable even more warnings 2022-10-07 18:19:06 +02:00
sys Avoid magic numbers 2022-10-08 14:44:48 +02:00
atexit.cpp libc: Implement atexit() and _exit() 2022-10-12 20:41:55 +02:00
errno.cpp Kernel, libc and userspace: Add basic errno support. 2022-10-08 12:06:09 +02:00
fcntl.cpp libc: Implement wrappers for sys_{open,read,write} 2022-10-10 20:45:26 +02:00
file.cpp libc: Add fdopen() 2022-10-12 20:19:13 +02:00
init.cpp libc: Implement atexit() and _exit() 2022-10-12 20:41:55 +02:00
luna.cpp libc: Document the functions in luna.h 2022-10-12 11:54:29 +02:00
printf.cpp libc: make fprintf actually write to the chosen file 2022-10-11 21:10:19 +02:00
stdio.cpp libc: Implement fputs, fputc, putc and putchar 2022-10-12 10:05:14 +02:00
stdlib.cpp libc: Implement atexit() and _exit() 2022-10-12 20:41:55 +02:00
string.cpp Kernel, libc: Implement EFAULT 2022-10-12 19:25:35 +02:00
unistd.cpp libc: Implement atexit() and _exit() 2022-10-12 20:41:55 +02:00