unlink and mkdir
authorRonald G. Minnich <rminnich@google.com>
Sun, 26 Jan 2014 05:35:28 +0000 (21:35 -0800)
committerRonald G. Minnich <rminnich@google.com>
Sun, 26 Jan 2014 05:35:28 +0000 (21:35 -0800)
They don't work but this is how it probably
ought to look.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
kern/src/syscall.c

index 9f0109c..806692d 100644 (file)
@@ -1336,8 +1336,7 @@ intreg_t sys_unlink(struct proc *p, const char *path, size_t path_l)
        char *t_path = user_strdup_errno(p, path, path_l);
        if (!t_path)
                return -1;
-       /* TODO: 9ns support */
-       retval = do_unlink(t_path);
+       retval = sysremove(t_path);
        user_memdup_free(p, t_path);
        return retval;
 }
@@ -1423,7 +1422,7 @@ intreg_t sys_mkdir(struct proc *p, const char *path, size_t path_l, int mode)
                return -1;
        mode &= ~p->fs_env.umask;
        /* TODO: 9ns support */
-       retval = do_mkdir(t_path, mode);
+       retval = syscreate(t_path, DMDIR, mode);
        user_memdup_free(p, t_path);
        return retval;
 }