From 6cbe58797781cb8514a62bb3ab0e3e8a5d58bce2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 31 Aug 2023 01:06:41 +0200 Subject: kernel: add _sys_getprocfs in place of HANDLE_PROCFS This makes the side-effects more explicit, and feels less hacky than `HANDLE_PROCFS`. I don't think accessing a handle alone should have side-effects, even if it's a "special" one. --- src/cmd/shell/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cmd/shell') diff --git a/src/cmd/shell/shell.c b/src/cmd/shell/shell.c index df239eb..3f33756 100644 --- a/src/cmd/shell/shell.c +++ b/src/cmd/shell/shell.c @@ -1,5 +1,6 @@ #include "builtins.h" #include "shell.h" +#include #include #include #include @@ -61,7 +62,7 @@ void run_args(int argc, char **argv, struct redir *redir) { fprintf(stderr, "procmnt: missing mountpoint\n"); return; } - _sys_mount(HANDLE_PROCFS, argv[1], strlen(argv[1])); + camellia_procfs(argv[1]); /* if (!(3 <= argc && !strcmp(argv[2], "raw"))) { if (!mount_at("/")) { -- cgit v1.2.3