summaryrefslogtreecommitdiff
path: root/src/user/app
diff options
context:
space:
mode:
authordzwdz2023-08-13 23:29:46 +0200
committerdzwdz2023-08-13 23:29:46 +0200
commit8050069c57b729c18c19b1a03ab6e4bf63b4735e (patch)
tree6c1ee4beae0519e06dc24ee42c5fde758137d17f /src/user/app
parentfa06b2c9cb7c128243f603dd3f23ddbb3d542e51 (diff)
libc: replace fork2_n_mount with mount_at
Diffstat (limited to 'src/user/app')
-rw-r--r--src/user/app/shell/shell.c2
-rw-r--r--src/user/app/tests/kernel/path.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c
index 65f08b6..185aa7e 100644
--- a/src/user/app/shell/shell.c
+++ b/src/user/app/shell/shell.c
@@ -63,7 +63,7 @@ void run_args(int argc, char **argv, struct redir *redir) {
_sys_mount(HANDLE_PROCFS, argv[1], strlen(argv[1]));
/*
if (!(3 <= argc && !strcmp(argv[2], "raw"))) {
- if (!fork2_n_mount("/")) {
+ if (!mount_at("/")) {
fs_dirinject(argv[1]);
exit(1);
}
diff --git a/src/user/app/tests/kernel/path.c b/src/user/app/tests/kernel/path.c
index 5392681..5a22c36 100644
--- a/src/user/app/tests/kernel/path.c
+++ b/src/user/app/tests/kernel/path.c
@@ -64,7 +64,7 @@ static void test_path_simplify(void) {
}
static void mount_resolve_drv(const char *path) {
- if (fork2_n_mount(path)) return;
+ if (mount_at(path) != 0) return;
struct ufs_request res;
while (!c0_fs_wait(NULL, 0, &res)) {