mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
ports: fix bash recipe and stub a few signal sysdeps in mlibc
This commit is contained in:
@@ -170,10 +170,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..310a6df
|
||||
index 0000000..8029348
|
||||
--- /dev/null
|
||||
+++ mlibc-workdir/sysdeps/astral/generic/generic.cpp
|
||||
@@ -0,0 +1,501 @@
|
||||
@@ -0,0 +1,513 @@
|
||||
+#include <bits/ensure.h>
|
||||
+#include <mlibc/debug.hpp>
|
||||
+#include <mlibc/all-sysdeps.hpp>
|
||||
@@ -292,6 +292,18 @@ index 0000000..310a6df
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ int sys_sigprocmask(int how, const sigset_t *__restrict set,
|
||||
+ sigset_t *__restrict retrieve) {
|
||||
+ mlibc::infoLogger() << "mlibc: sigprocmask is a stub" << frg::endlog;
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ int sys_sigaction(int, const struct sigaction *__restrict,
|
||||
+ struct sigaction *__restrict) {
|
||||
+ mlibc::infoLogger() << "mlibc: sigaction is a stub" << frg::endlog;
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ int sys_utimensat(int dirfd, const char *pathname, const struct timespec times[2], int flags) {
|
||||
+ long ret;
|
||||
+ return syscall(SYSCALL_UTIMENSAT, &ret, dirfd, (uint64_t)pathname, (uint64_t)times, flags);
|
||||
|
||||
+2
-1
@@ -6,7 +6,8 @@ hostdeps="xgcc xbinutils"
|
||||
deps="readline mlibc"
|
||||
|
||||
configure() {
|
||||
${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --without-bash-malloc
|
||||
cp -rp ${source_dir}/* .
|
||||
./configure --host=x86_64-astral --prefix=${prefix} --without-bash-malloc
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user