From: Ben Pfaff <blp@cs.stanford.edu>
Date: Mon, 20 Sep 2004 04:28:03 +0000 (+0000)
Subject: Add initial_size argument to create syscall.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75663d9273af881a832699bfab6575ec1507761e;p=pintos-anon

Add initial_size argument to create syscall.
---

diff --git a/src/lib/user/syscall.c b/src/lib/user/syscall.c
index 506712f..791f31c 100644
--- a/src/lib/user/syscall.c
+++ b/src/lib/user/syscall.c
@@ -29,9 +29,9 @@ join (pid_t pid)
 }
 
 bool
-create (const char *file)
+create (const char *file, unsigned initial_size)
 {
-  return syscall (SYS_create, file);
+  return syscall (SYS_create, file, initial_size);
 }
 
 bool
diff --git a/src/lib/user/syscall.h b/src/lib/user/syscall.h
index c07f3ea..d0a2250 100644
--- a/src/lib/user/syscall.h
+++ b/src/lib/user/syscall.h
@@ -10,7 +10,7 @@ void halt (void) NO_RETURN;
 void exit (int status) NO_RETURN;
 pid_t exec (const char *file);
 int join (pid_t);
-bool create (const char *file);
+bool create (const char *file, unsigned initial_size);
 bool remove (const char *file);
 int open (const char *file);
 int filesize (int fd);