From 4483bec0fbc069a6d10be6e5f966b8c0c19a29e2 Mon Sep 17 00:00:00 2001
From: Alex Stratford <alexander3.stratford@live.uwe.ac.uk>
Date: Wed, 4 Dec 2019 12:53:08 +0000
Subject: [PATCH] Added prototype

---
 userprog/system_calls.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/userprog/system_calls.h b/userprog/system_calls.h
index 1d56a93..2351833 100644
--- a/userprog/system_calls.h
+++ b/userprog/system_calls.h
@@ -44,9 +44,10 @@ void syscall_create(struct intr_frame *f);
 void syscall_write(struct intr_frame *f);
 
 /*
- * NOTE: There are more system calls implemented by Pintos but we are not
- * implementing them because the assignment brief does not ask of it.
+ * Opens the file called file. Returns a nonnegative integer handle called a
+ * "file descriptor" (fd), or -1 if the file could not be opened.
  */
+void syscall_open(struct intr_frame *f);
 
 /*
  * special additional stuff for handling file descriptors because they're annoying
-- 
GitLab