From a181c71a2c5080d07328b6524419f0cadca9d9bf Mon Sep 17 00:00:00 2001 From: wullie Date: Fri, 20 Feb 2026 15:26:03 +0000 Subject: [PATCH] Upload files to "include" --- include/localheader.h | 17 +++++++++++++++++ include/stdWullie.h | 12 +++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 include/localheader.h diff --git a/include/localheader.h b/include/localheader.h new file mode 100644 index 0000000..619671b --- /dev/null +++ b/include/localheader.h @@ -0,0 +1,17 @@ +// this code is licenced under Wrathmark licence +// © 2026 wullie wulliestudio.com +// please see attached licence for full usage and rights + +#ifndef LOCALHEADER_H +#define LOCALHEADER_H + +// local functions +void exit(int code); + + +// syscalls go here i dont want them exposed to the user +long syscall1(long number, long arg1); +long syscall2(long number, long arg1, long arg2); +long syscall3(long number, long arg1, long arg2, long arg3); +long syscall4(long number, long arg1, long arg2, long arg3, long arg4); +#endif diff --git a/include/stdWullie.h b/include/stdWullie.h index 94f40dc..5463ad3 100644 --- a/include/stdWullie.h +++ b/include/stdWullie.h @@ -28,17 +28,19 @@ #define BWHITE "\x1b[47m" // SYS calls +#define SYS_read 0 #define SYS_write 1 +#define SYS_open 2 +#define SYS_close 3 #define SYS_exit 60 // funcs -void ColorPrint(char *string, const char *color); -void BackgroundPrint(char *string, const char *Bcolor); - +void ColorPrint(char *string, char *color); +void BackgroundPrint(char *string, char *Bcolor); +long Wopen(const char *pathname, int flags, int mode); +long closeFile(long fd); // basic funcs -void exit(int code); -long unsigned strlen(char *string); void print(char *string); #endif