From 9f16b032d38613ca95e321e1d1e652c43129c68b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 15 Aug 2020 17:42:36 +0200 Subject: Added libgui --- lib/inc/sys.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 lib/inc/sys.h (limited to 'lib/inc/sys.h') diff --git a/lib/inc/sys.h b/lib/inc/sys.h deleted file mode 100644 index 16d3c4f..0000000 --- a/lib/inc/sys.h +++ /dev/null @@ -1,27 +0,0 @@ -// MIT License, Copyright (c) 2020 Marvin Borner -// Syscall implementation - -#ifndef SYS_H -#define SYS_H - -enum sys { SYS_LOOP, SYS_MALLOC, SYS_FREE, SYS_EXEC, SYS_EXIT }; - -int sys0(enum sys num); -int sys1(enum sys num, int d1); -int sys2(enum sys num, int d1, int d2); -int sys3(enum sys num, int d1, int d2, int d3); -int sys4(enum sys num, int d1, int d2, int d3, int d4); -int sys5(enum sys num, int d1, int d2, int d3, int d4, int d5); - -/** - * Wrappers - */ - -#define loop() sys0(SYS_LOOP) -#define exec(path) sys1(SYS_EXEC, (int)path) -#define exit() \ - sys0(SYS_EXIT); \ - while (1) { \ - } - -#endif -- cgit v1.2.3