Upload files to "include"

This commit is contained in:
2026-02-20 15:26:03 +00:00
parent d5a98aaf31
commit a181c71a2c
2 changed files with 24 additions and 5 deletions

17
include/localheader.h Normal file
View File

@@ -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

View File

@@ -28,17 +28,19 @@
#define BWHITE "\x1b[47m" #define BWHITE "\x1b[47m"
// SYS calls // SYS calls
#define SYS_read 0
#define SYS_write 1 #define SYS_write 1
#define SYS_open 2
#define SYS_close 3
#define SYS_exit 60 #define SYS_exit 60
// funcs // funcs
void ColorPrint(char *string, const char *color); void ColorPrint(char *string, char *color);
void BackgroundPrint(char *string, const char *Bcolor); void BackgroundPrint(char *string, char *Bcolor);
long Wopen(const char *pathname, int flags, int mode);
long closeFile(long fd);
// basic funcs // basic funcs
void exit(int code);
long unsigned strlen(char *string);
void print(char *string); void print(char *string);
#endif #endif