aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/common.h35
-rw-r--r--src/shared/stdarg.h9
-rw-r--r--src/shared/stdbool.h13
-rw-r--r--src/shared/stddef.h8
-rw-r--r--src/shared/stdint.h16
5 files changed, 0 insertions, 81 deletions
diff --git a/src/shared/common.h b/src/shared/common.h
deleted file mode 100644
index 4f6814c..0000000
--- a/src/shared/common.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef MELVIX_COMMON_H
-#define MELVIX_COMMON_H
-
-// Syscalls
-#define SYS_HALT 0 // Halt (debug)
-#define SYS_EXIT 1 // Exit process
-#define SYS_READ 2 // Read file
-#define SYS_WRITE 3 // Write file
-#define SYS_EXEC 4 // Execute file and kill parent
-#define SYS_SPAWN 5 // Execute file and let parent alive
-#define SYS_WAIT 6 // Wait for PID
-#define SYS_GET_PID 7 // Get process id
-#define SYS_MALLOC 8 // Allocate memory
-#define SYS_FREE 9 // Free memory
-#define SYS_GET 10 // Get kernel variable
-#define SYS_MAP 11 // Map input to function
-
-// Get
-#define GET_FRAMEBUFFER 0
-
-// Mappings
-#define MAP_KEYBOARD 0
-#define MAP_MOUSE 1
-
-// Common event structs
-struct keyboard_event {
- int scancode;
-};
-
-struct mouse_event {
- int mouse_x;
- int mouse_y;
-};
-
-#endif \ No newline at end of file
diff --git a/src/shared/stdarg.h b/src/shared/stdarg.h
deleted file mode 100644
index 2f45f23..0000000
--- a/src/shared/stdarg.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef MELVIX_STDARG_H
-#define MELVIX_STDARG_H
-
-typedef __builtin_va_list va_list;
-#define va_start __builtin_va_start
-#define va_end __builtin_va_end
-#define va_arg __builtin_va_arg
-
-#endif \ No newline at end of file
diff --git a/src/shared/stdbool.h b/src/shared/stdbool.h
deleted file mode 100644
index 733ec28..0000000
--- a/src/shared/stdbool.h
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef MELVIX_STDBOOL_H
-#define MELVIX_STDBOOL_H
-
-typedef int bool;
-
-#define true 1
-#define false 0
-
-// For the strange people in the world
-#define TRUE 1
-#define FALSE 0
-
-#endif \ No newline at end of file
diff --git a/src/shared/stddef.h b/src/shared/stddef.h
deleted file mode 100644
index f4bd1a2..0000000
--- a/src/shared/stddef.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef MELVIX_STDDEF_H
-#define MELVIX_STDDEF_H
-
-// u32
-
-#define NULL ((void *)0)
-
-#endif \ No newline at end of file
diff --git a/src/shared/stdint.h b/src/shared/stdint.h
deleted file mode 100644
index 8ed1198..0000000
--- a/src/shared/stdint.h
+++ /dev/null
@@ -1,16 +0,0 @@
-#ifndef MELVIX_STDINT_H
-#define MELVIX_STDINT_H
-
-typedef signed char s8;
-typedef unsigned char u8;
-
-typedef signed short s16;
-typedef unsigned short u16;
-
-typedef signed int s32;
-typedef unsigned int u32;
-
-typedef signed long long s64;
-typedef unsigned long long u64;
-
-#endif \ No newline at end of file