Initial implementation for new syscalls
Adding patch from goldfish