mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
file: cleanfile
This commit is contained in:
@@ -33,7 +33,9 @@ static file_t* newfile() {
|
||||
}
|
||||
|
||||
static void cleanfile(file_t *file) {
|
||||
__assert(!"UNIMPLEMENTED");
|
||||
vfs_close(file->vnode, fileflagstovnodeflags(file->flags));
|
||||
VOP_RELEASE(file->vnode);
|
||||
slab_free(filecache, file);
|
||||
}
|
||||
|
||||
file_t *fd_get(int fd) {
|
||||
|
||||
Reference in New Issue
Block a user