#include <syscall.h>
-#include "syscall-stub.h"
#include "../syscall-nr.h"
/* Invokes syscall NUMBER, passing no arguments, and returns the
}
int
-join (pid_t pid)
+wait (pid_t pid)
{
- return syscall1 (SYS_join, pid);
+ return syscall1 (SYS_wait, pid);
}
bool
syscall1 (SYS_close, fd);
}
-bool
-mmap (int fd, void *addr, unsigned length)
+mapid_t
+mmap (int fd, void *addr)
{
- return syscall3 (SYS_mmap, fd, addr, length);
+ return syscall2 (SYS_mmap, fd, addr);
}
-bool
-munmap (void *addr, unsigned length)
+void
+munmap (mapid_t mapid)
{
- return syscall2 (SYS_munmap, addr, length);
+ syscall1 (SYS_munmap, mapid);
}
bool