ArvernOS
|
This directory contains both the kernel C library (libk) and the standard C library (libc), which share pretty much the same implementation. Some Makefile-fu and C macros help separate the two libraries.
When adding new code, the general idea is to write a unified implementation, from a standard C library perspective, and that should be enough to work in the kernel. That being said:
#ifdef __is_libk // libk code #else // libc code #endif
#ifndef __is_libk // libc only code #endif