Split processctl() syscall into multiple smaller ones
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user