mlibc: stub sys_getgroups

This commit is contained in:
Matheus
2024-08-31 20:29:18 -03:00
parent 324d639ac9
commit cbcd4bd60f
+9 -3
View File
@@ -130,7 +130,7 @@ index 16ab8b7..5ccc503 100644
#endif
+#endif
diff --git mlibc-clean/options/rtld/generic/main.cpp mlibc-workdir/options/rtld/generic/main.cpp
index 360ed37..62e5d39 100644
index 0f5f1a3..c66ef93 100644
--- mlibc-clean/options/rtld/generic/main.cpp
+++ mlibc-workdir/options/rtld/generic/main.cpp
@@ -17,6 +17,8 @@
@@ -219,10 +219,10 @@ index 0000000..e5b087a
+
diff --git mlibc-workdir/sysdeps/astral/generic/generic.cpp mlibc-workdir/sysdeps/astral/generic/generic.cpp
new file mode 100644
index 0000000..5047fee
index 0000000..3f0df5d
--- /dev/null
+++ mlibc-workdir/sysdeps/astral/generic/generic.cpp
@@ -0,0 +1,979 @@
@@ -0,0 +1,985 @@
+#include <bits/ensure.h>
+#include <mlibc/debug.hpp>
+#include <mlibc/all-sysdeps.hpp>
@@ -291,6 +291,12 @@ index 0000000..5047fee
+ return 0;
+ }
+
+ int sys_getgroups(size_t size, const gid_t *list, int *ret) {
+ // TODO unstub
+ *ret = 0;
+ return 0;
+ }
+
+ int sys_vm_protect(void *pointer, size_t size, int prot) {
+ long ret;
+ return syscall(SYSCALL_MPROTECT, &ret, (uint64_t)pointer, size, prot);