You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
norlit-libc is designed to conform to ISO C standard as well as those
defined POSIX standard in the standard headers. norlit-libc do not
intend to support other POSIX-specific headers, but may create stubs
for them since they are not available in freestanding environment.
FLT_ROUND and FLT_EVAL_METHOD are not implemented and will abort when used
TODO List
Macros in errno.h and signal.h should be system dependent, extract them to include/sys in some way
stdio.h
wchar and uchar
norlit-libc currently has no need for uchar and legacy wchar support. Related functions are defined but not implemented. Here is the list.
<uchar.h>, <wchar.h> and <wctype.h>
mblen, mbtowc, wctomb
mbstowcs, wcstombs
From <inttypes.h>: wcstoimax, wcstoumax
Thread-safety and reentrancy
norlit-libc currently has no need for multi-threading, so thread-safe is not concerned. If future support for thread-safety is needed, convert all static variables to thread-local storage or add locks to them. Reentrancy support is also not considered currently.
Locale
norlit-libc currently has no need for locale, so only C/POSIX locale is supported. When implementing norlit-libc, functions use current locale will be redirected to *_l functions by first retrieving locale by uselocale((locale_t)0). *_l will do the job instead. To support multiple locale, simply reimplement all files under src/locale