mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
mlibc: stub sys_getgroups
This commit is contained in:
@@ -130,7 +130,7 @@ index 16ab8b7..5ccc503 100644
|
|||||||
#endif
|
#endif
|
||||||
+#endif
|
+#endif
|
||||||
diff --git mlibc-clean/options/rtld/generic/main.cpp mlibc-workdir/options/rtld/generic/main.cpp
|
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-clean/options/rtld/generic/main.cpp
|
||||||
+++ mlibc-workdir/options/rtld/generic/main.cpp
|
+++ mlibc-workdir/options/rtld/generic/main.cpp
|
||||||
@@ -17,6 +17,8 @@
|
@@ -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
|
diff --git mlibc-workdir/sysdeps/astral/generic/generic.cpp mlibc-workdir/sysdeps/astral/generic/generic.cpp
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..5047fee
|
index 0000000..3f0df5d
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ mlibc-workdir/sysdeps/astral/generic/generic.cpp
|
+++ mlibc-workdir/sysdeps/astral/generic/generic.cpp
|
||||||
@@ -0,0 +1,979 @@
|
@@ -0,0 +1,985 @@
|
||||||
+#include <bits/ensure.h>
|
+#include <bits/ensure.h>
|
||||||
+#include <mlibc/debug.hpp>
|
+#include <mlibc/debug.hpp>
|
||||||
+#include <mlibc/all-sysdeps.hpp>
|
+#include <mlibc/all-sysdeps.hpp>
|
||||||
@@ -291,6 +291,12 @@ index 0000000..5047fee
|
|||||||
+ return 0;
|
+ 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) {
|
+ int sys_vm_protect(void *pointer, size_t size, int prot) {
|
||||||
+ long ret;
|
+ long ret;
|
||||||
+ return syscall(SYSCALL_MPROTECT, &ret, (uint64_t)pointer, size, prot);
|
+ return syscall(SYSCALL_MPROTECT, &ret, (uint64_t)pointer, size, prot);
|
||||||
|
|||||||
Reference in New Issue
Block a user