AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
close.c
Go to the documentation of this file.
1
4
5#include <core/system.h>
6#include <fs/vfs.h>
7#include <fs/posix.h>
8
16{
17 return vfs_close(file->vnode);
18}
int vfs_close(struct vnode *vnode)
Drops a reference to a vnode.
Definition close.c:18
int posix_file_close(struct file *file)
Closes an open file by dropping its reference to its vnode.
Definition close.c:15
An open file (POSIX's "open file description", fs/file.c).
Definition vfs.h:157