aboutsummaryrefslogtreecommitdiff
path: root/include/kpl.h
blob: 7c5e20926b52c35b88e42e6ad346a383c92c93c7 (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
48
49
50
51
/*
 * This is the only header included in any c source file
 */

#pragma once

#define KPL_VERSION "0.0.0"

// System includes
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <pthread.h>
#include <semaphore.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/syscall.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_object_task kpl_object_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/io.h"
#include "kpl/env.h"