// 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 // syscall macros #ifdef __linux__ #define SYS_read 0 #define SYS_write 1 #define SYS_open 2 #define SYS_close 3 #define SYS_sleep 35 #define SYS_exit 60 #define SYS_mkdir 83 #elif __FreeBSD__ #define SYS_read 3 #define SYS_write 4 #define SYS_open 5 #define SYS_close 6 #define SYS_sleep 244 #define SYS_exit 1 #define SYS_mkdir 136 #endif // local functions void exit(int code); // time spec for sleep typedef struct timespec { long tv_sec; long tv_nsec; } timespec; // 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