Register `umount2` system call to syscall_shim library.
Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Cristian Vijelie <cristianvijelie@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #127
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += chown-3
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += stat-2
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += mkdir-2
+UK_PROVIDED_SYSCALLS-$(CONFIG_LIBVFSCORE) += umount2-2
vfscore_mount_dump
umount
umount2
+uk_syscall_e_umount2
+uk_syscall_r_umount2
link
uk_syscall_e_link
uk_syscall_r_link
drele(mp->m_root);
}
-int
-umount2(const char *path, int flags)
+UK_SYSCALL_R_DEFINE(int, umount2, const char*, path, int, flags)
{
struct mount *mp, *tmp;
int error, pathlen;