9ns: Add high-level support for symlinks
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 26 Feb 2018 16:00:10 +0000 (11:00 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 6 Apr 2018 19:23:01 +0000 (15:23 -0400)
commitb664ca0bc7226a1f9050eca18110cd5f9a159ba1
treebbf13a6ffef5ae613bf4db9ce15c988102888138
parentea056996ccb8b407ac26f7922f71fc12cb0812b8
9ns: Add high-level support for symlinks

This creates links with SYS_symlink and extracts the info with
SYS_readlink.  You need a 9ns device that supports symlinks, such as the
yet-unmerged KFS.  Walking through symlinks doesn't work yet.

Similar to the VFS, we have various accessor-functions for stat, such as
regular stat and lstat.  Same goes for the 'dirstat' functions.  For those
not familiar, those functions are basically "stat a path and convert to a
dir."

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ns.h
kern/src/ns/sysfile.c
kern/src/syscall.c