From 96f41ff64d8113307f1b60d2eb6852423db34d14 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 18 Jul 2022 23:55:58 +0200 Subject: syscalls: implement execbuf i have been planning to implement something like this for a while now. it should be faster when doing consecutive syscalls (to be tested). it will also be helpful in writing the elf loader --- src/kernel/proc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kernel/proc.h') diff --git a/src/kernel/proc.h b/src/kernel/proc.h index c400f7d..c642a42 100644 --- a/src/kernel/proc.h +++ b/src/kernel/proc.h @@ -57,6 +57,12 @@ struct process { struct vfs_mount *mount; + struct { + void *buf; + size_t len; + size_t pos; + } execbuf; + struct handle *handles[HANDLE_MAX]; }; -- cgit v1.2.3