Add initial_size argument to create syscall.
[pintos-anon] / src / lib / user / syscall.h
index e10d39e1fd47e3e7997c78354bf6f6bfcce2d7e9..d0a22500dd8f36f7090ca57ee23173ff85ecfff4 100644 (file)
@@ -8,13 +8,21 @@ typedef int pid_t;
 
 void halt (void) NO_RETURN;
 void exit (int status) NO_RETURN;
-pid_t exec (const char *);
+pid_t exec (const char *file);
 int join (pid_t);
-bool create (const char *);
-bool remove (const char *);
-int open (const char *);
-int read (int fd, void *, unsigned);
-int write (int fd, const void *, unsigned);
+bool create (const char *file, unsigned initial_size);
+bool remove (const char *file);
+int open (const char *file);
+int filesize (int fd);
+int read (int fd, void *buffer, unsigned length);
+int write (int fd, const void *buffer, unsigned length);
+void seek (int fd, unsigned position);
+unsigned tell (int fd);
 void close (int fd);
+bool mmap (int fd, void *addr, unsigned length);
+bool munmap (void *addr, unsigned length);
+bool chdir (const char *dir);
+bool mkdir (const char *dir);
+void lsdir (void);
 
 #endif /* lib/user/syscall.h */