Skip to content
Snippets Groups Projects
Commit 8793cd7e authored by ja3-saxby's avatar ja3-saxby
Browse files

Merge branch 'Alex/26-implement-close-system-call' into 'feature/system-calls'

Removing excess functionality

See merge request !16
parents 8851152d bde94a2d
Branches
No related tags found
2 merge requests!22Merge Feature/system calls,!16Removing excess functionality
...@@ -23,8 +23,6 @@ void syscall_close(struct intr_frame *f) { ...@@ -23,8 +23,6 @@ void syscall_close(struct intr_frame *f) {
} }
// Close the file using file_close, defined in file.h // Close the file using file_close, defined in file.h
file_close(file); file_close(file);
if (disassociate_file_descriptor(file_descriptor) == false) { // Checking if file is empty or non-existent // Remove the file_descriptor
f->eax = -1; // Returning a failure state disassociate_file_descriptor(file_descriptor);
return;
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment