Wording fixes.
[pintos-anon] / src / lib / user / syscall.c
index efabc018c4b80650b9c896c08e16382fc834577d..89e0185f901700cceab59d7709d0f0b389be98d8 100644 (file)
@@ -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
@@ -46,6 +46,12 @@ open (const char *file)
   return syscall (SYS_open, file);
 }
 
+int
+filesize (int fd) 
+{
+  return syscall (SYS_filesize, fd);
+}
+
 int
 read (int fd, void *buffer, unsigned size)
 {
@@ -58,6 +64,18 @@ write (int fd, const void *buffer, unsigned size)
   return syscall (SYS_write, fd, buffer, size);
 }
 
+void
+seek (int fd, unsigned position) 
+{
+  syscall (SYS_seek, fd, position);
+}
+
+unsigned
+tell (int fd) 
+{
+  return syscall (SYS_tell, fd);
+}
+
 void
 close (int fd)
 {