Add new syscall stubs.
[pintos-anon] / src / lib / user / syscall.h
index e10d39e1fd47e3e7997c78354bf6f6bfcce2d7e9..a594016cb1ff1db565f5739a97169f873d00167a 100644 (file)
@@ -8,13 +8,19 @@ 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);
+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 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 */