mlibc patch: dont error on stubbed futex calls

This commit is contained in:
Matheus
2024-04-13 10:06:40 -03:00
parent 190e14e7eb
commit 3e0926cba8
+3 -3
View File
@@ -188,7 +188,7 @@ 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..8a814ec index 0000000..8d990b7
--- /dev/null --- /dev/null
+++ mlibc-workdir/sysdeps/astral/generic/generic.cpp +++ mlibc-workdir/sysdeps/astral/generic/generic.cpp
@@ -0,0 +1,553 @@ @@ -0,0 +1,553 @@
@@ -656,12 +656,12 @@ index 0000000..8a814ec
+ int sys_futex_wait(int *pointer, int expected, const struct timespec *time) { + int sys_futex_wait(int *pointer, int expected, const struct timespec *time) {
+ mlibc::infoLogger() << "mlibc: futex wait is a stub" << frg::endlog; + mlibc::infoLogger() << "mlibc: futex wait is a stub" << frg::endlog;
+ // TODO UNSTUB + // TODO UNSTUB
+ return ENOSYS; + return 0;
+ } + }
+ int sys_futex_wake(int *pointer) { + int sys_futex_wake(int *pointer) {
+ mlibc::infoLogger() << "mlibc: futex wake is a stub" << frg::endlog; + mlibc::infoLogger() << "mlibc: futex wake is a stub" << frg::endlog;
+ // TODO UNSTUB + // TODO UNSTUB
+ return ENOSYS; + return 0;
+ } + }
+ +
+ +