blob: 1d53bef4cd5a173ef1856838aeaefbd6ff7936e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* This is the only header included in any c source file
*/
#pragma once
#define KPL_VERSION "0.0.0"
// System includes
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <pthread.h>
#include <semaphore.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/uio.h>
#include <sys/param.h>
#include <linux/fs.h>
#include <linux/io_uring.h>
#ifdef KPL_VALGRIND
#include <valgrind/valgrind.h>
#include <valgrind/memcheck.h>
#endif
// KPL forward declarations
typedef struct _kpl_task kpl_task;
typedef struct _kpl_thread kpl_thread;
typedef struct _kpl_env kpl_env;
// KPL includes
#include "kpl/color.h"
#include "kpl/class.h"
#include "kpl/object.h"
#include "kpl/tree.h"
#include "kpl/memory.h"
#include "kpl/env.h"
|