chmod() and fchmod(), implemented with wstat (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 16 Jul 2014 05:21:34 +0000 (22:21 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 16 Jul 2014 05:21:34 +0000 (22:21 -0700)
commitb3b4f99826a3ba9876e14ab6b6bdb4074eeb4d25
tree70206359723d0005ebe6383e41d8e3911ba02f98
parentc3c946871599518fa3d3d5ed67deaf039e675327
chmod() and fchmod(), implemented with wstat (XCC)

Removes SYS_chmod, using SYS_wstat for it instead.  While I was at it,
wstat and fwstat work for 9ns completely.  For the VFS, it only supports
changing the mode.

Rebuild glibc.  Either copy over the two new files or just make clean.
If you chmod and get "invalid" or something similar, either you didn't
rebuild glibc properly or you didn't fill kfs again.
kern/include/ros/bits/syscall.h
kern/include/vfs.h
kern/src/syscall.c
kern/src/vfs.c
tools/compilers/gcc-glibc/glibc-2.14.1-ros/sysdeps/ros/chmod.c
tools/compilers/gcc-glibc/glibc-2.14.1-ros/sysdeps/ros/fchmod.c [new file with mode: 0644]