38 lines
1.6 KiB
Plaintext
38 lines
1.6 KiB
Plaintext
---------------------------------------------------------------------
|
|
GNU GPL OS/K
|
|
|
|
Authors: spectral`
|
|
NeoX
|
|
|
|
Desc: Folder description - "kaleid/common"
|
|
---------------------------------------------------------------------
|
|
|
|
This is the folder containing the sources for Kaleid's C runtime library, linked
|
|
both to the kernel and to the system processes that run outiside the kernel.
|
|
It can also be compiled for Linux as a very basic C library, for test purposes.
|
|
|
|
This folder contains the following files:
|
|
- common.h
|
|
This file is to be included by every source file using the library.
|
|
It:
|
|
- Provides the elementary types (e.g. size_t) used through Kaleid.
|
|
|
|
- Defines the different values of the "status_t" type used
|
|
throughout Kaleid and related utilitary functions.
|
|
|
|
- Defines the macro "assert()". Currently any program wanting to
|
|
use this macro has to implement its own handler:
|
|
noreturn void _assert_handler(const char *cond,
|
|
const char *file,
|
|
int line,
|
|
const char *func)
|
|
but an overridable default handler will be furnished later.
|
|
|
|
- stlib.h
|
|
The include file for most of functions of the common library, notably
|
|
- Memory management utilities (e.g. memset())
|
|
- String manipulation utilities (e.g. strcpy())
|
|
- Type conversion utilities (e.g. itoa())
|
|
|
|
|