#include <sys/types.h>
Go to the source code of this file.
◆ NULL
◆ abort()
_Noreturn void abort |
( |
void |
| ) |
|
◆ atexit()
int atexit |
( |
void(*)(void) |
function | ) |
|
Definition at line 17 of file exit.c.
18{
21
24
27 } else {
28
29 return -1;
30 }
31
32 return 0;
33}
static uint64_t _atexit_count
static struct atexit_cb _atexits[32]
static struct atexit_cb * _atexit_last
◆ atoi()
int atoi |
( |
const char * |
nptr | ) |
|
Definition at line 3 of file stdlib.c.
4{
5 int i = 0;
6 int val = 0;
7
8 while (nptr[i] != '\0') {
9 if (nptr[i] >= '0' && nptr[i] <= '9') {
10 val = val * 10 + (int)(nptr[i] - '0');
11 } else {
12 return 0;
13 }
14 i++;
15 }
16
17 return val;
18}
◆ calloc()
◆ exit()
Definition at line 36 of file exit.c.
37{
41 }
42
44
45 __builtin_unreachable();
46}
◆ free()
Definition at line 169 of file malloc.c.
170{
172 hdr--;
173
175 return;
176
178
181 else
183}
#define HEAP_MAX_POOLSIZE
static void free_small(Header *mem)
static void free_large(Header *mem)
◆ malloc()
Definition at line 160 of file malloc.c.
161{
164 else
166}
static void * malloc_large(size_t sz)
static void * malloc_small(size_t sz)