X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flib%2Fuser%2Fsyscall.h;h=a594016cb1ff1db565f5739a97169f873d00167a;hb=4ae5b813663cd56fcbe1f1f547c9d445e5dc6107;hp=e10d39e1fd47e3e7997c78354bf6f6bfcce2d7e9;hpb=6916b246f3be8c72d6e77fd98c4a1447fd2c1de7;p=pintos-anon diff --git a/src/lib/user/syscall.h b/src/lib/user/syscall.h index e10d39e..a594016 100644 --- a/src/lib/user/syscall.h +++ b/src/lib/user/syscall.h @@ -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 */