banan-os/libc
Bananymous 894065a67e LibC: cleanup and fix fgets
My quick fix for fgets wrote non-nullterminated newline if size was
one.

POSIX doesn't specify what happens if size == 0, so I do the same as
glibc and return NULL without setting errno.
2023-12-05 10:00:43 +02:00
..
arch/x86_64 Kernel/LibC: Add crt* files to LibC and remove crt0 from kernel 2023-10-30 11:06:13 +02:00
include Kernel: Make internal framebuffer bpp constexpr defined in libc 2023-11-29 20:07:33 +02:00
sys Kernel/LibC: Implement very basic msync 2023-11-22 22:44:06 +02:00
.gitignore Initial commit. We have a booting kernel 2022-11-12 21:04:47 +02:00
CMakeLists.txt BuildSystem: using sysroot doesn't need root privileges anymore! 2023-11-04 17:50:43 +02:00
assert.cpp LibC: Rewrite all the headers. 2023-05-26 22:31:21 +03:00
ctype.cpp LibC: add toupper, tolower in ctype.h 2023-05-10 23:13:56 +03:00
dirent.cpp All: Clear lines with only whitspace in them 2023-09-10 00:31:42 +03:00
fcntl.cpp Kernel/LibC/Userspace: Implement mkdir and creat 2023-10-25 21:07:26 +03:00
icxxabi.cpp LibC: implement and call __cxa_finalize() on exit() 2023-10-30 11:10:08 +02:00
malloc.cpp LibC: mmap returns MAP_FAILED instead of NULL 2023-09-29 10:38:08 +03:00
math.S LibC: add math.h with floorl 2023-05-10 22:35:42 +03:00
printf_impl.cpp LibC: Implement length modifiers to printf 2023-09-28 11:42:57 +03:00
pwd.cpp All: Clear lines with only whitspace in them 2023-09-10 00:31:42 +03:00
signal.cpp Kernel/LibC: add SYS_SIGNAL/signal() 2023-07-21 20:08:13 +03:00
stdio.cpp LibC: cleanup and fix fgets 2023-12-05 10:00:43 +02:00
stdlib.cpp LibC: implement and call __cxa_finalize() on exit() 2023-10-30 11:10:08 +02:00
string.cpp LibC: Implement stpcpy since gcc seems to need it 2023-09-30 20:58:19 +03:00
termios.cpp Kernel: Add bareboness possibility to set termios 2023-05-26 22:31:21 +03:00
time.cpp LibC: add time() implementation 2023-09-04 13:52:58 +03:00
unistd.cpp Kernel/LibC: Implement pread() 2023-11-28 23:47:30 +02:00