Split processctl() syscall into multiple smaller ones

This commit is contained in:
2025-10-14 16:37:36 +02:00
parent 8aec45316c
commit c34a253d11
22 changed files with 359 additions and 236 deletions

View File

@ -1,7 +1,7 @@
#include <stdint.h>
#include <stddef.h>
#include <system/system.h>
#include <sysdefs/processctl.h>
#include <sysdefs/proc.h>
#include <errors.h>
#include <uprintf.h>
#include <log.h>
@ -40,8 +40,9 @@ void _premain(void) {
_args[i] = umalloc(PROC_ARG_MAX);
}
processctl(-1, PCTL_ARGV, (uint64_t)&_argslen, (uint64_t)_args, MAX_ARGS);
proc_argv(-1, &_argslen, _args, MAX_ARGS);
main();
proc_kill(proc_getpid());
}