Register `getresgid` system call to syscall_shim library.
Signed-off-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Mocanu Viorel Gabriel <gabi.mocanu98@gmail.com>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #111
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += setfsgid-1
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += setfsuid-1
UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += getgroups-2
+UK_PROVIDED_SYSCALLS-$(CONFIG_LIBPOSIX_USER) += getresgid-3
getpwuid_r
getpwent
setegid
-getresgid
setresgid
setregid
getgroups
getgroups
uk_syscall_e_getgroups
uk_syscall_r_getgroups
+getresgid
+uk_syscall_e_getresgid
+uk_syscall_r_getresgid
return 0;
}
-int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid)
+UK_SYSCALL_R_DEFINE(int, getresgid, gid_t*, rgid, gid_t*, egid, gid_t*, sgid)
{
if (!rgid || !egid || !sgid) {
- errno = EFAULT;
- return -1;
+ return -EFAULT;
}
*rgid = *egid = *sgid = UK_DEFAULT_GID;