incomplete changes for sys_write/sys_close

This commit is contained in:
Bahadir Balban
2008-02-20 22:47:22 +00:00
parent f078116901
commit 2a5cdf80b5
4 changed files with 51 additions and 7 deletions

View File

@@ -111,6 +111,19 @@ int sys_open(l4id_t sender, const char *pathname, int flags, unsigned int mode)
return 0;
}
int sys_close(l4id_t sender, int fd)
{
struct vnode *v;
/* Get the task */
BUG_ON(!(task = find_task(sender)));
/* Lookup vnode */
if (!(v = vfs_lookup_byvnum(vfs_root.pivot->sb, vnum)))
return -EINVAL; /* No such vnode */
}
int sys_mkdir(l4id_t sender, const char *pathname, unsigned int mode)
{
struct tcb *task;