From 391a498f52d855b8753c3ec5efcf24c346e037e7 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 14 Oct 2024 23:09:02 +0200 Subject: [PATCH] Mon 14 Oct 23:06:38 CEST 2024 --- kernel/syscall_handler.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 kernel/syscall_handler.h diff --git a/kernel/syscall_handler.h b/kernel/syscall_handler.h new file mode 100644 index 0000000..5aad70a --- /dev/null +++ b/kernel/syscall_handler.h @@ -0,0 +1,24 @@ +/* +Copyright (C) 2016-2019 The University of Notre Dame +This software is distributed under the GNU General Public License. +See the file LICENSE for details. +*/ + +#ifndef SYSCALL_HANDLER_H +#define SYSCALL_HANDLER_H + +/* Only kernel/syscall.handlers invoked by other parts of kernel code should be declared here. */ + +int sys_process_run( int fd, int argc, const char **argv); +int sys_process_exec( int fd, int argc, const char **argv); +int sys_process_sleep(unsigned int ms); + +int sys_open_file( int fd, const char *path, int mode, kernel_flags_t flags ); +int sys_mkdir( int fd, const char *path); +int sys_rmdir(int fd, const char *path); +int sys_object_close( int fd ); + +int sys_open_window(int wd, int x, int y, int w, int h); +int sys_process_object_max(); + +#endif