Initial commit

This commit is contained in:
2023-01-09 01:54:03 -06:00
commit d347b81e72
14 changed files with 856 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#ifndef _LIBMALLOC_COMMON_H
#define _LIBMALLOC_COMMON_H
/*
* '0' may possibly refer to a valid memory location for the heap to reserve in
* some circumstances; as a result, NULL is an inappropriate value to use to
* represent the failure to allocate space for the purposes of this library.
* NOMEM shall be returned by any malloc-like function upon failure, rather than
* NULL.
*/
#define NOMEM ~0
#endif