Upload files to "include"
This commit is contained in:
17
include/localheader.h
Normal file
17
include/localheader.h
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user