From 45ce8728224caa44d31dca3117992b193fa3cd98 Mon Sep 17 00:00:00 2001 From: Miguel Date: Fri, 19 Oct 2018 02:41:53 +0200 Subject: window manager continued --- interface/syscalls.h | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to 'interface/syscalls.h') diff --git a/interface/syscalls.h b/interface/syscalls.h index 604e150..668a3d2 100644 --- a/interface/syscalls.h +++ b/interface/syscalls.h @@ -1,3 +1,19 @@ +/** + * @file + * + * Fool OS System Calls + * ==================== + * + * This is THE way for user programms to communicate with the kernel. + * + * The kernel exhibits a set of a few posix-style calls and some other + * non-standard foolish calls invented by myself. + * + * TODO: DOCUMENT each call! + * reentrant? limitations? posix compilance? implemented fully? + */ + + #define SYSCALL_EXIT 60 #define SYSCALL_CLOSE 66 #define SYSCALL_EXECVE 64 @@ -20,14 +36,14 @@ #define SYSCALL_READDIR 63 #define SYSCALL_KILL 73 #define SYSCALL_POLL 80 -#define SYSCALL_CLONE 83 -#define SYSCALL_PIPE 84 -#define SYSCALL_DUP2 86 -#define SYSCALL_GUI_RECT 87 -#define SYSCALL_GUI_WIN 88 -#define SYSCALL_SELECT 89 -#define SYSCALL_TCGETATTR 90 -#define SYSCALL_TCSETATTR 91 -#define SYSCALL_OPENDIR 92 +#define SYSCALL_CLONE 83 +#define SYSCALL_PIPE 84 +#define SYSCALL_DUP2 86 +#define SYSCALL_GUI_RECT 87 +#define SYSCALL_GUI_WIN 88 +#define SYSCALL_SELECT 89 +#define SYSCALL_TCGETATTR 90 +#define SYSCALL_TCSETATTR 91 +#define SYSCALL_OPENDIR 92 #define SYSCALL_UNIMPLEMENTED 200 -- cgit v1.2.3