Skip to content
Snippets Groups Projects
Commit 65c1d052 authored by a2-stratford's avatar a2-stratford
Browse files

Fixed name issue

Fixed wrongly placed asterisk
parent c020dc9c
No related branches found
No related tags found
2 merge requests!22Merge Feature/system calls,!17Implementing the remove syscall
......@@ -13,9 +13,9 @@
#include "filesys/file.h" // Dependency for and file struct
#include "filesys/filesys.h" // Dependency for filesys_remove
void syscall_open(struct intr_frame *f) {
void syscall_remove(struct intr_frame *f) {
// pop off first int argument from interrupt frame
char* file_name = (void*)(*(int*)f->esp + 1);
char* file_name = (void*)*((int*)f->esp + 1);
// Described in filesys.h, opens the file
if (filesys_remove(file_name) == false) { // Checking if file is empty or non-existent
f->eax = false; // Returning a failure state
......
......@@ -55,7 +55,7 @@ void syscall_open(struct intr_frame *f);
* Removing an open file does not close it. See Removing an Open File, for
* Details.
*/
void syscall_open(struct intr_frame *f);
void syscall_remove(struct intr_frame *f);
/*
* special additional stuff for handling file descriptors because they're annoying
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment