mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 22:18:21 +00:00
file: cleanfile
This commit is contained in:
@@ -33,7 +33,9 @@ static file_t* newfile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void cleanfile(file_t *file) {
|
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) {
|
file_t *fd_get(int fd) {
|
||||||
|
|||||||
Reference in New Issue
Block a user