From: Waldemar Kozaczuk <[email protected]> Committer: Nadav Har'El <[email protected]> Branch: master
syscall: support getgid, getuid, lseek and statfs This patch adds 4 new syscalls that map one-to-one to the four functions listed in the title above. These are required to run SeaweedFS on OSv. Refs #1188 Signed-off-by: Waldemar Kozaczuk <[email protected]> Message-Id: <[email protected]> --- diff --git a/linux.cc b/linux.cc --- a/linux.cc +++ b/linux.cc @@ -38,6 +38,7 @@ #include <sys/file.h> #include <sys/unistd.h> #include <sys/random.h> +#include <sys/vfs.h> #include <unordered_map> @@ -490,6 +491,10 @@ OSV_LIBC_API long syscall(long number, ...) #endif SYSCALL3(mkdirat, int, char*, mode_t); SYSCALL3(tgkill, int, int, int); + SYSCALL0(getgid); + SYSCALL0(getuid); + SYSCALL3(lseek, int, off_t, int); + SYSCALL2(statfs, const char *, struct statfs *); } debug_always("syscall(): unimplemented system call %d\n", number); -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/000000000000612efd05df440a8d%40google.com.
