Implement page fault for lazy loading executables, w/ G

This commit is contained in:
sBubshait
2024-11-28 20:03:50 +00:00
parent df20e0fdfe
commit 801fd7d310
136 changed files with 15097 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
#ifndef __LIB_STDLIB_H
#define __LIB_STDLIB_H
#include <stddef.h>
/* Standard functions. */
int atoi (const char *);
void qsort (void *array, size_t cnt, size_t size,
int (*compare) (const void *, const void *));
void *bsearch (const void *key, const void *array, size_t cnt,
size_t size, int (*compare) (const void *, const void *));
/* Nonstandard functions. */
void sort (void *array, size_t cnt, size_t size,
int (*compare) (const void *, const void *, void *aux),
void *aux);
void *binary_search (const void *key, const void *array, size_t cnt,
size_t size,
int (*compare) (const void *, const void *, void *aux),
void *aux);
#endif /* lib/stdlib.h */