From 75663d9273af881a832699bfab6575ec1507761e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 20 Sep 2004 04:28:03 +0000 Subject: [PATCH] Add initial_size argument to create syscall. --- src/lib/user/syscall.c | 4 ++-- src/lib/user/syscall.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2