Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / lib / user / syscall.c
index b6120fd154227f9301dd029412c015e2156bf10a..6cc02d1df3df4c5c14bf19c95726f46d3edd9bfe 100644 (file)
@@ -82,9 +82,9 @@ exec (const char *file)
 }
 
 int
-join (pid_t pid)
+wait (pid_t pid)
 {
-  return syscall1 (SYS_join, pid);
+  return syscall1 (SYS_wait, pid);
 }
 
 bool
@@ -147,10 +147,10 @@ mmap (int fd, void *addr)
   return syscall2 (SYS_mmap, fd, addr);
 }
 
-bool
+void
 munmap (mapid_t mapid)
 {
-  return syscall1 (SYS_munmap, mapid);
+  syscall1 (SYS_munmap, mapid);
 }
 
 bool