Commit Graph

107 Commits

Author SHA1 Message Date
Red Bear OS fa54b985ff absorb: 27 orphaned relibc patches re-applied (Phase 1.0A)
Per local/docs/PATCH-PRESERVATION-AUDIT-2026-07-12.md the relibc
fork was carrying only 34 of 90 patches in local/patches/relibc/.
The other 56 patches' content was silently missing from the fork.

This commit re-applies 27 patches that genuinely still apply
cleanly. Recovery covers:

- eventfd implementation (sys/eventfd.h + eventfd.rs)
- signalfd implementation (sys/signalfd.h + signalfd.rs)
- timerfd implementation (sys/timerfd.h + timerfd.rs)
- bits/eventfd.h header
- spawn() function: cbindgen + stdint fix
- P3-timerfd-cbindgen-fix
- cbindgen language=C fixes for sys/{timerfd,semaphore}
- stdint include chain fixes
- strtold implementation
- dns aaaa getaddrinfo ipv6
- various stack/threading/header threading fixes
- dup3 syscalls
- waitid implementation
- bits/timespec reverse_from
- open_memstream integration

24 files changed.
2026-07-12 01:29:50 +03:00
auronandace 8f3ac79670 tackle some clippy lints in redox-rt 2026-07-09 08:35:50 +01:00
Ibuki Omatsu fba233467a refactor: Move fd allocation logic into userspace 2026-07-01 08:08:23 -06:00
auronandace 4674c47f2b apply function_casts_as_integer lint to other arches 2026-06-17 14:28:39 +01:00
sourceturner e39106835a fix compiler warnings 2026-06-04 17:33:37 +02:00
aarch 20014bc121 RISCV64: Change VA scheme to Sv39 for real hardware support 2026-04-18 09:46:57 -06:00
Ibuki Omatsu cab0021461 refactor: Move protocols into libredox 2026-02-28 08:04:47 -07:00
auronandace 932defff20 follow up fixes for i586, aarch64 and riscv64gc 2026-02-10 16:53:10 +00:00
Jacob Lorentzon eeba32b3a2 misc signal fixes 2026-01-22 07:35:04 -07:00
sourceturner e6ce5628da Use unsafe blocks in redox-rt 2026-01-21 22:41:46 +01:00
Jeremy Soller 13b93e0f90 Merge branch 'master' into 'master'
fix(redox-rt/signal/x86_64): corrupted `r8`/`r10`

See merge request redox-os/relibc!817
2025-12-17 21:34:45 -07:00
Anhad Singh afbd5986a5 fix(redox-rt/signal/x86_64): corrupted r8/r10
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2025-12-18 14:03:13 +11:00
Ibuki Omatsu efa5b73015 refactor: Replace unlink and rmdir with unlinkat. Improve fork using ForkScratchPad. 2025-12-17 18:32:07 -07:00
Jeremy Soller 0844e6fc90 WIP: use upper fd table 2025-11-15 07:55:37 -07:00
Josh Megnauth e39b27664f unsafe_op_in_unsafe_fn: ld_so, generic/redox-rt
There are a few functions where I allowed the lint. The lower level and
FFI nature of relibc means that there are areas with a lot of unsafe.
Some functions are basically long blocks of unsafe or contain lots of
small blocks of unsafe. unsafe_op_in_unsafe_fn doesn't add clarity to
these functions. Instead, it reduces readability by adding an indent or
small "unsafe { .. }" clutter.
2025-10-04 21:36:51 -04:00
Jeremy Soller 82084440ad Support nightly-2025-10-03 2025-10-03 21:51:10 -06:00
Jeremy Soller 43b0f235ca Implement pthread_getattr_np 2025-09-30 12:49:22 -06:00
4lDO2 40b8064eae Fix raise signal number being -32. 2025-07-18 20:35:33 +02:00
4lDO2 8f234edf69 Fix riscv64 fork asm. 2025-04-19 19:27:04 +02:00
4lDO2 2fe8dc8f6e Add (untested) riscv64 sighandler SYS_CALL asm. 2025-04-19 19:27:03 +02:00
4lDO2 aa034fccc8 Compile on riscv64gc. 2025-04-19 19:27:03 +02:00
4lDO2 0083043736 Write and fix waitpid_multiple test. 2025-04-19 19:27:02 +02:00
4lDO2 a293b02992 Fix aarch64 signal test. 2025-04-19 19:27:02 +02:00
4lDO2 403beeb9f6 Fix sigqueue test for aarch64. 2025-04-19 19:27:02 +02:00
4lDO2 d559450d69 Use abort() rather than unreachable! when exit fails. 2025-04-19 19:27:02 +02:00
4lDO2 1c6b3ad78b Fix aarch64 child_hook. 2025-04-19 19:27:01 +02:00
4lDO2 fb8e3cd751 Fix sigqueue on i686. 2025-04-19 19:27:01 +02:00
4lDO2 05481b36a6 Fix IPC size on i686. 2025-04-19 19:27:01 +02:00
4lDO2 2fbbdcc1c9 Aarch64 fix, make i686 compile. 2025-04-19 19:27:01 +02:00
4lDO2 0213ac2d15 Probably fix aarch.
Bootloader is currently panicking so a bit hard to test.
2025-04-19 19:27:01 +02:00
4lDO2 c773544906 Fix sigentry for realtime sigs, fixing sigqueue test. 2025-04-19 19:27:01 +02:00
4lDO2 f813f5a222 Fix sigtimedwait realtime signals, almost handler too. 2025-04-19 19:27:01 +02:00
4lDO2 ac7e0755f1 Fix SyncSigPctl invocation. 2025-04-19 19:26:59 +02:00
4lDO2 ad5efd0f11 Reach init fork 2025-04-19 19:26:57 +02:00
4lDO2 26399569de Reach init w/proc manager. 2025-04-19 19:26:57 +02:00
4lDO2 b851422214 WIP: use proc manager in non-init fork. 2025-04-19 19:26:57 +02:00
bjorn3 facc643e18 Couple of misc improvements
Fix a bunch of warnings and clarify that execve will never return Ok by
using Infallible
2025-03-30 20:18:01 +02:00
Andrey Turkin a4122753e6 Initial RISC-V64 support 2024-10-11 06:44:54 +03:00
4lDO2 79e1550215 Use only sig & 63 when checking SA_ONSTACK. 2024-09-24 19:34:53 +02:00
4lDO2 21d23092cd Mostly fix i686. 2024-09-24 19:34:52 +02:00
4lDO2 e82ced6e4e Fix non-edge-case signal handling on aarch64. 2024-09-24 19:34:52 +02:00
4lDO2 d6396cb4e8 Probably complete aarch64 asm.
It contains all signal logic x86_64 already has, although statistically
it will certainly have a few errors.
2024-09-24 19:34:52 +02:00
4lDO2 9a7cfaeaf1 Simplify aarch64 asm slightly. 2024-09-24 19:34:52 +02:00
4lDO2 e860a19e8f WIP: Update i686 signal asm. 2024-09-24 19:34:52 +02:00
4lDO2 09108634cf Set uc_stack properly.
POSIX does not appear to explicitly mention that this should be the
sigaltstack, but other Linux appears to treat it as the sigaltstack.
2024-09-24 19:34:52 +02:00
4lDO2 30caf55429 Set siginfo_t.si_{pid,uid} from kill signals too. 2024-09-24 19:34:51 +02:00
4lDO2 e5136e66c1 Draft of updated aarch64 signal trampoline. 2024-09-24 19:34:51 +02:00
4lDO2 d0db6a1ce0 Fix i686. 2024-09-24 19:34:51 +02:00
4lDO2 f6761407e5 Pass si_pid to all realtime signals. 2024-09-24 19:34:51 +02:00
4lDO2 6fe7c264f6 Pass si_code to siginfo_t struct. 2024-09-24 19:34:51 +02:00