mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
file: fd_allocate
This commit is contained in:
@@ -38,6 +38,10 @@ static void cleanfile(file_t *file) {
|
||||
slab_free(filecache, file);
|
||||
}
|
||||
|
||||
file_t *fd_allocate() {
|
||||
return newfile();
|
||||
}
|
||||
|
||||
file_t *fd_get(int fd) {
|
||||
proc_t *proc = _cpu()->thread->proc;
|
||||
bool intstatus = interrupt_set(false);
|
||||
|
||||
Reference in New Issue
Block a user